User Tools

Site Tools


Sidebar

string:string_toboolean

string_toBoolean()

Function to convert a string to a boolean. This function is the equivalent of the method .toBoolean()

Usage

var mystring = "0";
var boolean =string_toBoolean(mystring);

Parameters

Parameter Data type Required Description
string string true The string to convert

Return Values

Value String Value
true true or 1
false false or 0
null All values not listed above. Could not convert to boolean.
string/string_toboolean.txt · Last modified: 2017/06/03 13:56 (external edit)