Title: Scotland national football team
Content:  Scotland qualified for their fifth consecutive World Cup in 1990 by finishing second in their qualifying group, ahead of France. Scotland were drawn in a group with Costa Rica, Sweden, and Brazil, but the Scots lost 1–0 to Costa Rica. While they recovered to beat Sweden 2–1 in their second game, they lost to Brazil in their third match 1–0 and were again eliminated after the first round. By a narrow margin, Scotland qualified for the UEFA European Championship for the first time in 1992. A 1–0 defeat by Romania away from home left qualification dependent upon other results, but a 1–1 draw between Bulgaria and Romania in the final group match saw Scotland squeeze through. Despite playing well in matches against the Netherlands and Germany and a fine win against 
Title: Timeline of Scottish football
Content:  enough to prevent another first round exit. The national side qualified for the next three World Cups in 1982, 1986 and 1990, but also exited at the first round in each. Scotland qualified for the finals of UEFA European Championship for the first time in 1992, and repeated the feat for the 1996 Euros in England. A further major tournament was reached when they took part in the 1998 FIFA World Cup in France, but then went over 20 years without qualifying for a major tournament. Scotland finally ended this barren run when they qualified for the COVID-19 delayed Euro 2020 tournament. The Scottish Football Association (SFA) were 
Title: History of the Scotland national football team
Content:  Scotland had to wait until 1954 before taking part in their first World Cup, even though they had qualified for the 1950 FIFA World Cup. Two places were allocated to the Home Nations with the 1950 British Home Championship acting as a qualifying group. However, the SFA stated that they would only send a team to the World Cup if they won the Home Championship. Going into their last game with England this was a possibility, but a 1–0 defeat meant that Scotland finished second behind England and the SFA declined to send the national side to the World Cup. Scottish-born Ed McIlvenny was part 
Title: Scotland at the Rugby World Cup
Content:   Scotland have played in every Rugby World Cup since the inaugural tournament in 1987. Their best finish was fourth in 1991. In their semi-final on October 26, 1991, Scotland lost 6&ndash;9 to England at Murrayfield after Gavin Hastings missed a penalty almost in front of and a short distance from the posts. On October 30 Scotland lost the third-place play-off to New Zealand in Cardiff 13&ndash;6. Since then they have qualified for the quarter-finals in every tournament except in 2011 and 2019, but have not qualified for the semi-finals. In 2015 Scotland were defeated in the quarter-final match versus Australia following a number of refereeing decisions that ultimately benefited Scotland more than they did Australia. In 2019, they were defeated in the pool stages by Ireland and hosts Japan, becoming the first Tier 1 team since Wales in 2007 to not qualify for the quarter-finals from a pool that only contained two Tier 1 teams.
Title: Scotland at the FIFA World Cup
Content:  Now managed by Andy Roxburgh, Scotland qualified for their fifth consecutive World Cup in 1990 by finishing second in their qualifying group behind Yugoslavia and ahead of France. In the finals they were drawn in a group with Costa Rica, Sweden, and Brazil, but the Scots lost 1–0 to Costa Rica in their opening match. While they recovered to beat Sweden 2–1 in their second game, they lost to Brazil in their third match 1–0 and were once again eliminated after the first round. Goalkeeper Jim Leighton fumbled a shot that allowed Brazil to score the only goal. Scotland failed to qualify for the 1994 FIFA World Cup. The team finished fourth 
Title: Timeline of Scottish football
Content:  1931. Scotland took part in their first major international tournament when they qualified for the 1954 FIFA World Cup in Switzerland, and then again in 1958 for the World Cup in Sweden, failing to progress from the first round in both tournaments. After a barren spell in the 1960s, Scotland qualified for the 1974 FIFA World Cup in West Germany, where the team was unbeaten but failed to progress due to inferior goal difference. The national side also qualified for the 1978 FIFA World Cup in Argentina, amidst unprecedented publicity and optimism. They failed to win either of their first two games, and a win over the Netherlands 
Title: Timeline of Scottish football
Content:  which they began to contest regular friendly matches against other European sides. Scotland first competed in a major tournament when they qualified for the 1954 FIFA World Cup. They have qualified for a further seven World Cups since, although have exited at the group stage each time. Scotland have also qualified three times for the UEFA European Championships, in 1992, 1996 and the COVID-19 delayed 2020 tournament; failing to progress past the group stage each time. The Scottish Football Association (SFA) were prominent in the administration of football since the early days of the game, and in 1882 agreed with the other home-nation associations on a uniform set of rules. They continue to play a role in this, with the SFA currently forming part of the International Football Association Board along with each of the other home-nation associations and four representatives from FIFA.
Title: Scotland at the FIFA World Cup
Content:  Steve Clarke was appointed Scotland manager in May 2019. After qualifying for UEFA Euro 2020, their first major tournament since the 1998 World Cup, Scotland finished second in Group F of 2022 FIFA World Cup qualification. This progressed the team into the play-offs, where they were paired with Ukraine in a semi-final at Hampden.
Title: Scotland at the FIFA World Cup
Content:  their qualifying group behind Italy, Switzerland and Portugal. When it became clear that Scotland could not qualify, Andy Roxburgh resigned from his position as team manager. Craig Brown guided Scotland to qualification for the 1998 FIFA World Cup, finishing as the best runners-up. Scotland were drawn against holders Brazil in the opening game of the World Cup. John Collins scored from the penalty spot to level the score at 1–1, but a Tom Boyd own goal led to a 2–1 defeat. Scotland drew their next game 1–1 with Norway in Bordeaux, but the final match against Morocco ended in a 3–0 defeat. Scotland have not appeared at the World Cup since.
Title: Scotland at the FIFA World Cup
Content:  Scotland failed to qualify for another World Cup in the next 16 years. In the 1962 competition, a "skilful but fragile" team finished joint-top of UEFA qualification group 8 with Czechoslovakia. This meant that the teams had to play-off in a neutral venue for the qualification place, which the Czechs won 4–2 after extra time. Jock Stein was appointed manager on a part-time basis ahead of 1966 FIFA World Cup qualification. Scotland were drawn with Italy, Poland and Finland in UEFA qualification group 8. Scotland got off to a good start with two wins against Finland and a draw in Poland, but then conceded two late goals to lose 2–1 to Poland at home. A 1–0 home win against Italy kept hopes alive going into the final game, where Scotland either needed to win in Italy to qualify or draw to force another play-off. Several first choice players withdrew due to injury; Scotland lost 3–0 and failed to qualify. Stein relinquished the Scotland job after this defeat to concentrate on his full-time role with Celtic.

Question: when did scotland last qualify for world cup?
Answer: 1998.