trueFalseFormat
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
Argument Reference
value boolean Required
Examples Sample code invoking the trueFalseFormat function
trueFalseFormat(1) Expected Result: true
trueFalseFormat(0) Expected Result: false
trueFalseFormat('1') Expected Result: true
trueFalseFormat('0') Expected Result: false
trueFalseFormat('YES') Expected Result: true
trueFalseFormat('NO') Expected Result: false
trueFalseFormat('') Expected Result: false
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/truefalseformat