Void

From Bohemia Interactive Community
Revision as of 10:56, 7 September 2007 by Suma (talk | contribs) (Void is correct for this description.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A variable of type Void is an undefined variable. When converted to a string with str or format, this variable will always return scalar bool array string 0xe0ffffef (in Armed Assault) or scalar bool array string 0xfcffffef (in Operation Flashpoint).

Undefining Variables

You can use nil to undefine variables.

myVar = 1;
...
myVar = nil;

myVar => undefined

Comparisons

No comparison with variables of this type will work.

Example:

// error
if (undefinedVar == ...) then ...
// error
if (undefinedVar == undefinedVar) then ...