Skip to content

Booleans and selection: if/else and logic · ⁨布尔值与选择:if/else 和逻辑⁩

English

Booleans and selection

  • A boolean is a value that is either true or false.
  • Programs make choices by testing a boolean and running different code.
  • In this lesson you learn if / else if / else and how to build conditions.
中文

布尔值与选择

  • 布尔值(boolean)是一个值,它要么是 true,要么是 false。
  • 程序通过判断一个布尔值并运行不同的代码来做出选择。
  • 在这节课里,你学习 if / else if / else,以及如何构造条件。

Handout

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

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