第 11 步:让我们设置第二个 if 语句!记住,你会发现在逻辑选项卡中。

  • 转到逻辑和.拖出另一个if并将其放在程序的底部。
  • 将测试变量choice更改为choice2 ,将测试"yes"更改为"city"
  • 点击图形,然后并将City放到新的 if 语句中。确保它用黄色块····缩进。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)