Returns the string true or false when a boolean value is passed in. Throws an exception if the value passed in cannot be converted to a boolean.
trueFalseFormat(value)
returns string
Name | Type | Required | Default | Description |
---|---|---|---|---|
value | boolean | Yes |
trueFalseFormat(1)
trueFalseFormat(0)
trueFalseFormat('1')
trueFalseFormat('0')
trueFalseFormat('YES')
trueFalseFormat('NO')
trueFalseFormat('')