Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 08:22, 12 December 2011 by Cg_pham (talk | contribs)



convertToBoolean

Converts the value of an expression to bool value

Syntax

convertToBoolean(expression)

Arguments

expression: Is an expression of the type bool, string or number.

Return type

bool

Examples

{

bool b = convertToBoolean("true");

if (b) print("it's true");

}

Availability

Version 4.8