View this PageEdit this Page (locked)Attachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

Conditionals - Teaching Tips

Motivate this by picking an example of when you want to execute a statement only when some condition is true. For example, you can go out if your room is clean.

Next point out a two possibility choice (do one thing when an expression is true and a different thing when false).

Next have an example with three or more possible outcomes. Show if, else if and else.

Link to this Page