ConvertToBoolean

From Catglobe Wiki
Revision as of 11:11, 7 March 2011 by 127.0.0.1 (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



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