POSITION:028,114
COLOUR:STANDARD
TEXT:00,In the case of the example on the previous page, it is the same as:
COLOUR:EUPHORIA
TEXT:32,if              and              then
COLOUR:POINTS
TEXT:00,   expression 1     expression 2
TEXT:16,     one or more expressions to be run only if both expressions are true
COLOUR:EUPHORIA
TEXT:16,end if
COLOUR:STANDARD
TEXT:32,However, using nested "if" statements allow you more flexibility,
TEXT:16,particularly when you want to mix "if" statements, library routine calls,
TEXT:16,and assignment statements in a block of conditioned statements to be run.
TEXT:16,It also gives you the option of avoiding the use of "if" statements that
TEXT:16,have complex relational expressions made up of smaller expressions.
TEXT:32,When using nested "if" statements, make sure each "if" has a matching
TEXT:16,"end if" for each "if" level, just like the example you saw earlier.
TEXT:16,Make sure that any optional "else" and "elsif" used are on the correct
TEXT:16,level as the "if" statement they are associated with.
