POSITION:028,114
COLOUR:STANDARD
TEXT:00,The use of two "if" statements works, but it is inefficient because both
TEXT:16,"if" statements are checked even though only one of two outcomes will
TEXT:16,happen. You can't have a condition that is both true and false. It would
TEXT:16,be nice to have the "if" statement work like a toggle switch,
TEXT:16,executing the right block of statements with only one condition check.
TEXT:32,Fortunately, the "if" statement can be modified to handle two outcomes
TEXT:16,without using two "if" statements:
COLOUR:EUPHORIA
TEXT:32,if            then
COLOUR:POINTS
TEXT:00,   expression
TEXT:16,     one or more statements that will only run if expression is true
COLOUR:EUPHORIA
TEXT:16,else
COLOUR:POINTS
TEXT:16,     one or more statements that will only run if expression is false
COLOUR:EUPHORIA
TEXT:16,end if
