Computing
First True Wins
Compare two rules that ask the same questions in a different order. Predict each output, reveal the checks one at a time and find a number that shows why the first true condition matters.

Read the material
Download PDFA teaching sequence
Trace an if / else-if / else decision and explain the effect of changing branch order.
Start with 4
Trace each rule until its first true condition, then compare the outputs.
Try 12
Predict Large for the rule that checks size first and Even for the rule that checks parity first. Reveal each check in order.
Use a final number to show which later check is skipped
Ask pupils to explain the stopping rule in a sentence.
Before you teach
Look for the thinking behind an answer, choose the support your class needs and leave room for an independent response.
What to look for
A pupil names the first true test and explains why later branches are skipped. Comparing the outputs for 12 makes the distinction visible.
Give a little support
Give pupils two rule strips and have them cover every line below the first true one.
Take the idea further
Write a new pair of overlapping conditions and find one input that separates the two orders.
Things to keep in mind
The examples demonstrate one if / else-if chain. Separate if statements behave differently.
Keep the idea. Make it yours.
Bring your topic, learning goal and class context to PLAI™, then review what you create.
Ideas to try with your class
Sample teaching perspectives on what to try, what to adapt and what to watch for.




Steady Marker
Trace the input 4 through each rule order and stop at the first true condition. Compare outputs only after pupils have shown which branch was reached.
Step by Step
Use this after pupils can test evenness and compare a number with ten. The overlapping conditions make branch order a decision to explain, rather than a formatting detail.
Five More Minutes
Give pairs separate rule strips and cover every line below the first true condition. One pupil can test the condition while the other records the branch taken.
Reread Reminder
Keep the explanation specific to an if and else-if chain. Follow up with a new pair of overlapping conditions and an input that exposes the change in order.