If Scotland lose their final group match to Hungary, they will finish fourth and be eliminated.
If the match is drawn, Scotland will finish the group in third and could yet qualify – but that would depend on results in other groups.
If Scotland win the game, they will finish either second or third – depending on the result in Switzerland’s match with Germany.
As Scotland drew with Switzerland, their positions will be decided on overall goal difference, then overall goals scored, then disciplinary points, then their ranking in European qualifiers.
As it stands, Scotland’s goal difference is six worse than Switzerland’s, so it would need a significant swing in the final round of games.