| Contents > Developing ColdFusion MX Applications > Using ColdFusion Variables > Strings > Boolean values |
|
|
|
|
||
A 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 string "Yes" are equivalent, and False, 0, and the string "No" are equivalent.
Boolean evaluation is not case-sensitive. For example, True, TRUE, and true are equivalent.
|
|
||
| Contents > Developing ColdFusion MX Applications > Using ColdFusion Variables > Strings > Boolean values |
|
|
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.