8.9.2 IsDefine or IsDef (check whether a variable is defined)
- Purpose
-
Checks whether a variable is defined and returns True or False.
- Syntax
IsDefine (VarName) IsDef (VarName)
- Argument
-
- VarName
-
Specify a variable to evaluate.
- Description
-
The IsDefine or IsDef command checks whether the specified variable is defined. The command returns True if the variable is defined, or False if not.
- Example
' Branch to another process if location variable %1 ' is specified. If IsDefine (%1) Then Exec ("CallProc01.SPT", True, %1) Else Exec ("CallProc02.SPT", True) End If
- JP1/Script version
-
Supported from JP1/Script 01-00.