Converts a string value to a Boolean value.
Syntax
StrToBool(sVal)
sVal:
Boolean value as a string. Allowable values are: TRUE, FALSE or any numeric value.
Return Value
Boolean value of 0 or 1.
Example
StrToBool("TRUE"); // returns 1 which is TRUEStrToBool("false"); // returns 0 which is FALSEStrToBool("5"); // returns 1StrToBool("Orange"); // returns 0StrToBool("0"); // returns 0
See Also
String Functions, Using the Caret Escape Sequence Character
Published June 2018