booleanFormat

Evaluates the input as a boolean, and outputs either true or false. If not a boolean throws an exception.

booleanFormat(number) → returns Numeric

This function requires Adobe ColdFusion 2016 and up. Not supported on Lucee, OpenBD, etc.

Argument Reference for the booleanFormat function

number

Required: Yes

Examples sample code invoking the booleanFormat function


BooleanFormat Example

booleanFormat(1)

Expected Result: true


Fork me on GitHub