If
Index Prev Next
Synopsis
NOT/S,WARN/S,ERROR/S,FAIL/S,,EQ/K,GT/K,GE/K,VAL/S,EXISTS/K
Function
Carry out all the commands in a block if a given conditional is true.
(A block is a run of command lines ended with an Else or EndIf
command.) For every If command there must be a corresponding EndIf.
If the condition is false, command execution will skip to the
corresponding Else of EndIf command.
Example
If 500 GT 200 VAL
echo "500 is greater than 200"
Else
If EXISTS S:User-Startup
echo "User-Startup script found in S:"
Execute S:User-Startup
EndIf
EndIf
Notes
ERROR and FAIL will only be appropriate if the fail level of the
script is set via FailAt (the standard fail level is 10 and if any
return code exceeds or equals this value, the script will be aborted).
|