Your report book says Pass or Fail next to each subject. A computer printed it, but nobody typed those words for each student. How did the computer decide which word to print?
In this post:
- What selection is, and how the decision symbol works
- A pass/fail flowchart you can run
- A grades flowchart with several decisions
- Turning game rules into decisions, a tracing activity and a quiz
Selection: choosing a path
In a sequence, every step happens. With selection, the algorithm asks a question and chooses which steps to do next, depending on the answer. In a flowchart, the question goes in a decision diamond. Two arrows come out: one labelled Yes (the condition is true) and one labelled No (it is false). Afterwards, the two paths usually join up again.
Conditions often compare values using these signs, called relational operators:
| Sign | Meaning | Example (mark = 50) |
|---|---|---|
| = | is equal to | mark = 50 → Yes |
| <> | is not equal to | mark <> 50 → No |
| > | is greater than | mark > 50 → No |
| < | is less than | mark < 50 → No |
| >= | is greater than or equal to | mark >= 50 → Yes |
| <= | is less than or equal to | mark <= 50 → Yes |
Example 1: pass or fail
Try it: run the pass/fail flowchart
Type a mark, then step through. Try 72, then 35, then exactly 50. Which path does each mark take?
Input (mark):
Variables
Output
What just happened
Example 2: grades, with several decisions
Here, the school gives an A for 75 and over, a B for 60 to 74, a C for 50 to 59 and a D below 50. One decision is not enough, so the flowchart asks up to three questions, one after another. As soon as one answer is Yes, it outputs the grade and goes to Stop.
Try it: run the grades flowchart
Try marks that give each grade, including the boundary marks 75, 60 and 50. Count how many decisions each mark goes through.
Input (mark):
Variables
Output
What just happened

Image source: File:Flowgorithm Conditions.svg (Wikimedia Commons)
Watch: if-else decisions in a flowchart
This video shows how to draw a decision with different steps for when the condition is met and when it is not, called an if-else.
Video: Making If-Else Style Decisions in a Flowchart – Access 2 Learn – https://www.youtube.com/watch?v=xC8h8ALwPvs
Activity: game rules as decisions
Remember the Snakes and Ladders algorithm? Its rules are decisions. “If the counter lands at the foot of a ladder, climb up” becomes a diamond asking “On a ladder?”. Yes leads to a process, “Move to the top of the ladder”. No skips it. Draw the flowchart for one turn: roll the die, move, check for a ladder, check for a snake, and check for square 30.
Activity: predict the path
Try it: what is the output?
Use the grades flowchart (A 75+, B 60–74, C 50–59, D below 50). Type just the letter.
1. mark = 90
2. mark = 75
3. mark = 74
4. mark = 50
5. mark = 49
Self-check quiz
Click the best answer. You get feedback straight away; only your first click counts towards your score.
1. Which symbol is used for selection in a flowchart?
2. How many labelled arrows leave a decision symbol?
3. The pass mark is 50. Which condition gives the right answer for a mark of exactly 50?
4. In the pass/fail flowchart, what is output for a mark of 49?
5. What does <> mean?
6. Why does the grades flowchart need more than one decision?
Related posts on islandclass.org
- The Selection Construct
- Selection Statements: Practise Exercise(s)
- Using multiple selection statements (By Example)
- Flowcharts – Sequence, Selection Intro (Class Discussion) – class discussion
- Class Instruction – Selection Statements – class instructions
- Selection Statements – Homework Correction , demonstrations and closure (Live Class) – class recording
For later, in Forms 4–5 (CSEC IT): these go deeper and are for when you reach CSEC Information Technology.
- Flowcharts and Pseudocode: Sequence, Selection and Loops
- Operators in Algorithms: Arithmetic, Relational and Logical Operators, Truth Tables, MOD and DIV
Next: Flowcharts: Repeating Steps with Loops
Syllabus link: Forms 1–3 ICT curriculum, Module 5, Objective 5.11 – use flowchart symbols appropriately to represent an algorithm using a selection construct.
Attributions to media used in this post:
- Flowgorithm Conditions.svg – Dave Braunschweig – CC BY-SA 4.0 (via Wikimedia Commons)
- Video: Making If-Else Style Decisions in a Flowchart – Access 2 Learn (YouTube)
Updates
2026/10/21
- Fixed the activity code so its buttons keep working.
© 2026 Vedesh Kungebeharry. All rights reserved.