Flowchart for IF ... THEN ... ELSE
The flowchart shape for an IF. It asks a question, then the Yes path and the No path each run their own statements and rejoin before the next step.
Understanding Flowchart for IF ... THEN ... ELSE in IGCSE Computer Science Paper 2
What it does: The THEN statement (OUTPUT Pass) goes on the Yes path and the ELSE statement (OUTPUT Fail) goes on the No path, both leaving the same diamond. The condition is a question, so it goes inside a diamond. Rectangles are for processes such as assignments. Labels show which path is taken when the condition is true (Yes) and when it is false (No). The diamond holds the condition from the IF ... THEN line. Exactly two paths leave it, labelled Yes and No. In an IF ... ELSE flowchart the two paths must join back into one flow line before the next step. Fix: join both paths and continue.
Common mistakes: A decision must be drawn as a diamond, not a rectangle. A rectangle is a process box and cannot have separate Yes and No paths. It should be 'Diamond: Age >= 18?'. The start of a flowchart is drawn with a terminator (rounded) shape. A diamond is only for decisions. It should be 'Start (terminator)'.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 188–213) and word search (Modules 188–231).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
decision diamondFill in the Blanks
Spot the Error
Student with a class code? Join your class →