Skip to content

Selection: CASE

CASE chooses among values

  • CASE OF compares one variable against several values.
  • It is tidier than many IFs when each value gives a fixed result.
  • The block ends at ENDCASE.

CASE compares Grade against each value; Grade = 2 matches the Silver branch

Log in or create account

IGCSE & A-Level