Pseudocode - Selection and Case Statements
Selection lets a program choose between different paths depending on a condition. You will write IF statements, finish them with ENDIF, and use CASE statements when there are many fixed options.
Key terms
- Selection
- Choosing between alternatives based on a condition.
- IF ... THEN ... ELSE ... ENDIF
- The selection structure. ENDIF closes the statement in IGCSE pseudocode.
- CASE statement
- Selects one of many fixed options. It is easier to read and maintain than many IF statements.
Part of Algorithm Design & Problem Solving.