Skip to content

Nested decisions · ⁨嵌套选择⁩

English

One mark, three outcomes

  • A mark of 80 or more is a distinction, 50 or more is a pass, and anything lower is a fail.
  • One IF has two paths. The second decision goes inside the ELSE, as its own IF.
  • Each IF has its own ENDIF. Indent the inner one so you can see which ELSE it belongs to.
中文

一个分数,三种结果

  • 80 分及以上是优秀,50 分及以上是及格,再低就是不及格。
  • 一个 IF 有两条路。第二个判断放在 ELSE 里面,写成它自己的 IF。
  • 每个 IF 都有自己的 ENDIF。把内层缩进,才能看出 ELSE 属于谁。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩