A variable of type Void is an undefined variable.
nil can be used to undefine variables.
|Nothing||scalar bool array string nothing 0xfcffffef|
No comparison with any variables will work.
Detect an Undefined Variable
The isNil command, introduced in Armed Assault, allows to detect if a variable exists or not:
isNil Workaround 1
isNil Workaround 2
The alternative way to check if a variable is undefined before isNil existence is that it silently fails any expression evaluations on it:
Suppose the variable a is undefined, and we set the variable b like so:
The inferred type of b is now array - since b was the product result of an array add operation with a definite array () and an unknown type (a)
b's string representation will now be "array", and b wil be considered an undefined array.