Operation Manual

Chapter 16: Programming 282
:If
condition
:command (if true)
:command
If-Then
Then following an If executes a group of commands if condition is true (nonzero). End identifies the end
of the group of commands.
:If condition
:Then
:
command (if true)
:command (if true)
:End
:
command
If-Then-Else
Else following If-Then executes a group of commands if condition is false (zero). End identifies the end of
the group of commands.
:If condition
:Then
:
command (if true)
:command (if true)
:Else
:
command (if false)
:command (if false)
Program Output
Program Output