Difference between revisions of "ConvertToBoolean"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:General_Functions]]
 
[[Category:General_Functions]]

+
{{HelpFiles}}
  
 
====convertToBoolean====
 
====convertToBoolean====

Revision as of 09:22, 12 December 2011



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