If

Command groupFlag affectedReversibleExecute on clientPlatform(s)
ConstructsNONOYESAll

Syntax

If
 
calculation

Description

This command tests the result of the calculation and branches if zero. If the result of the calculation is non-zero, the result of the test will be true; a result of zero is interpreted as false. As with all If commands, control passes to the next command in the method if the result is true, otherwise to the next End If, Else or Else If in the method.

Example

If
 
pSecurityLevel
=1

  
Open window instance
 
wAministrator

Else
  
OK message
 
{
This feature is only available to the Administrator
}

End If