Difference between revisions of "VisionaireObject Command: getBool"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Created page with "{| class="toccolours mw-collapsible mw-collapsed ts" |- ! Function History |- | Available since v3.0 |} Returns the boolean value of a linked condition. A boolean value is e...")
(No difference)

Revision as of 18:32, 28 September 2014

Function History
Available since v3.0


Returns the boolean value of a linked condition. A boolean value is either true or false.


Syntax:

getBool(t_bool)


Example: using getBool to return the boolean value of a condition

getObject("Conditions[door_open]"):getBool(VConditionValue) --  return boolean value of condition "door_open"


Arguments

none


Flags

none


Return

t_bool
Returns true or false.