ColdFusion 9.0 Resources |
Boolean valuesA Boolean value represents whether something is true or false. ColdFusion has two special constants—True and False—to represent these values. For example, the Boolean expression 1 IS 1 evaluates to True. The expression "Monkey" CONTAINS "Money" evaluates to False. You can use Boolean constants directly in expressions, as in the following example: <cfset UserHasBeenHere = True> In Boolean expressions, True, nonzero numbers, and the strings “Yes”, “1”, “True” are equivalent; and False, 0, and the strings “No”, “0”, and “False” are equivalent. Boolean evaluation is not case sensitive. For example, True, TRUE, and true are equivalent. |