BooleanFormat
Method Signature
BooleanFormat(value=[any])Arguments
Argument
Type
Required
Description
Default
Examples
1 is definitely true
booleanFormat( 1 );
0 is definitely false
booleanFormat( 0 );
Negative -1 is true as well
And even a number larger then 1 is true
String representation of true is interpreted as true
String representation of false is interpreted as false
YES is recognized as synonym for true
NO is recognized as synonym for false
An empty string results in false
Additional Examples
Deprecated Alias
Related
Last updated
Was this helpful?
