True, False, And …

When testing for TRUE or FALSE in ColdFusion, remember the following. Any non zero number (even negative numbers) will evaluate to TRUE, 0 evaluates to FALSE. YES evaluates to TRUE, NO evaluates to FALSE. Anything else (text, for example) will not evaluate to either TRUE or FALSE. (Applies to: ColdFusion All)

Leave a Reply