Returns whether the specified variable exists.
Syntax
defined( variable )
variable.defined( )
Parameters
variable
|
the name of the variable to check
|
Returns
boolean
|
true if the specified variable exists
false if the specified variable does not exist
|
Example
if defined( "var" ) then
var = var + 1
end
|