Small company logo:
   History
 
Advertising banner:
 
 If
 
Purpose
Branches processing based on a condition.
This command requires a condition that must be TRUE or FALSE. Any numeric condition that is not TRUE is considered to be FALSE. When the condition is TRUE, the commands following this statement are executed, then processing continues on the line following End If.
Syntax
If Condition Then Command1 Else Command2
If Condition Then
Commands
End If

If Condition1 Then
Commands
ElseIf Condition2 Then
Commands
Else
Commands
End If
You can include any number of ElseIf...Then clauses with a block If...Then structure to specify additional conditions.
Example
If FCUserid = "guest" Then
        Print "Welcome Guest User"
ElseIf FCUserid = "admin" Then
        Print "Welcome Administrator"
Else
        Print "Welcome"         'user is neither a guest nor administrator
End If