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...")
 
m (Text replacement - "{{toc}}" to "")
Line 36: Line 36:
 
'''t_bool''' <br/>
 
'''t_bool''' <br/>
 
Returns <span style="color:lightgreen;">true</span> or <span class="red">false</span>.
 
Returns <span style="color:lightgreen;">true</span> or <span class="red">false</span>.
{{toc}}
 

Revision as of 01:52, 4 November 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.