Coding Conditional Logic

There are two branching structures that you can use to code conditional logic:

Note Note:During this guide, you will learn to code for conditional logic using the CFIF and CFELSE block tags. See the CFML Language Reference for ColdFusion Express to learn about CFSWITCH and CFCASE tags.

CFIF Syntax

<CFIF Expression>
    True procedure
    Not true procedure