跳到主要内容

Making decisions

English

Making a choice

  • if runs some code only when a condition is true.
  • The condition is followed by a colon :.
  • The lines that belong to the if are indented (4 spaces).

讲义

登录或创建账户

IGCSE, A-Level & AP