Watch Those Curly Braces

Writing ? Unlike CFML (in which statements have matching tags), if statements have no required end designator. By default, if statements apply to the code that follows them only. To make an entire block of code conditional, that code must be enclosed within curly braces. Omit these and only one statement will be conditional, subsequent statements will always execute. (Applies to: ColdFusion 4 (or later))

Leave a Reply