Variables: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{mergefrom|Undefined_variables}}
'''Description:'''
'''Description:'''



Revision as of 04:52, 20 April 2006

Template:mergefrom

Description:

Variables must be initialised before being used.

When any uninitialized variable is detected in any expression, the whole expression results in nil (undefined value).
When undefined value is encountered in field where boolean value is expected, it is converted to false.

Variable may be uninitialised by assigning it nil value.
This effectively destroys variable as if it never existed.