Application Guide

88 Alphabetical Listing
If
Catalog >
If BooleanExpr evaluates to true, executes
the single statement Statement or the block
of statements Block before continuing
execution.
If BooleanExpr evaluates to false,
continues execution without executing the
statement or block of statements.
Block can be either a single statement or a
sequence of statements separated with the
“:” character.
Note for entering the example: For
instructions on entering multi-line program
and function definitions, refer to the
Calculator section of your product
guidebook.
If BooleanExpr Then
Block1
Else
Block2
EndIf
If BooleanExpr evaluates to true, executes
Block1 and then skips Block2.
If BooleanExpr evaluates to false, skips
Block1 but executes Block2.
Block1 and Block2 can be a single
statement.
If BooleanExpr1 Then
Block1
ElseIf BooleanExpr2 Then
Block2
ElseIf BooleanExprN Then
BlockN
EndIf
Allows for branching. If BooleanExpr1
evaluates to true, executes Block1. If
BooleanExpr1 evaluates to false, evaluates
BooleanExpr2, and so on.