Skip to content

Making decisions

Handout

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).

Handout

Log in or create account

IGCSE & A-Level