Macromedia ColdFusion 5 Training from the Source (With CD-ROM)
| I l @ ve RuBoard |
<CFIF>/< CFELSEIF >/<CFELSE>
Used to create conditional statements. Syntax
<cfif expression> Code to be executed <cfelseif expression> Code to be executed <cfelse> Code to be executed </cfif> Attributes
None Example
<!--- Use <cfif> to determine where you are ---> <cfif state eq "Iowa"> At Home. <cfelseif state eq "Michigan"> Visiting In-laws. <cflelse> Somewhere else! </cfif> |
| I l @ ve RuBoard |