Variables: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
Variables must be initialised before being used. | Variables must be initialised before being used. | ||
When any uninitialized variable is detected in any expression, the whole expression results in nil (undefined value).<br> | When any uninitialized variable is detected in any expression, the whole expression results in [[nil]] (undefined value).<br> | ||
When undefined value is encountered in field where boolean value is expected, it is converted to false. | When undefined value is encountered in field where [[Boolean|boolean]] value is expected, it is converted to [[false]]. | ||
Variable may be | Variable may be uninitialised by assigning it [[nil]] value.<br> | ||
This effectively destroys variable as if it never existed. | This effectively destroys variable as if it never existed. | ||
Revision as of 23:25, 19 April 2006
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.