Selection

Cards (4)

  • IF entry == ”a” THEN
    PRINT(“You selected A”)
    ELSEIF entry == “b” then
    PRINT(“You selected B”)
    ELSE
    PRINT(“Unrecognised selection“)
    ENDIF
  • IF/ELSE selection
  • SWITCH ENTRY:
    CASE ”A”:
    PRINT(“you selected A”)
    CASE “B”: 1
    PRINT(“”you selected B”)
    DEFAULT
    PRINT(“Unrecognised selection“)
    ENDSWITCH
  • SWITCH/CASE selection