Teaching article

A sequence follows order; a conditional selects an action

Show how a condition changes which command runs.

Run the same input through a fixed instruction set and one containing a decision. Comparing the paths shows what the condition changes, provided the command meanings and starting setup remain consistent.

A fixed instruction always places the token left; a conditional depends on the marker.

Explain why this branch ran

Execute the fixed sequence. Execute the conditional version. Compare paths.

Trace the same input through both instruction sets. This shows whether a changed path results from the condition or another difference.

Different notation needs an explicit key.

What caused the alternative action? Trace with coloured pointers.

Resources

Further reading

Read next

Explore Coding and computational thinking. Browse all teaching articles.