Shortcut to get the first value of an array variable as a number.
Shortcut to get the last value of an array variable as a string.
Shortcut to get the last value of an array variable as a number.
Shortcut to get the last value of an array variable as a string.
Compares the boolean value of a variable.
Equivalent to variable.getAsBoolean() === boolean
.
This shortcut function is needed for events code generation.
Get the number of children in a variable. This shortcut function is needed for events code generation.
Get the value of a variable. Equivalent to variable.getAsNumber()
.
This shortcut function is needed for events code generation.
Get the string of a variable. Equivalent to variable.getAsString()
.
This shortcut function is needed for events code generation.
Check if a global variable exists. This shortcut function is needed for events code generation.
Check if a scene variable exists. This shortcut function is needed for events code generation.
Set the boolean value of a variable. Equivalent to variable.setBoolean()
.
This shortcut function is needed for events code generation.
Toggles the boolean value of a variable. This shortcut function is needed for events code generation.
Pushes a value onto an array. This shortcut function is needed for events code generation.
Check if a child exists in a variable. This shortcut function is needed for events code generation.
Clear the children in a variable. This shortcut function is needed for events code generation.
Removes an index from an array. This shortcut function is needed for events code generation.
Remove the child with the given name in a variable. This shortcut function is needed for events code generation.
Generated using TypeDoc
A namespace of functional equivalents to the gdjs.Variable methods, needed for events code generation.