BackUp LevelNext

About ColdFusion Expressions

At a basic level, you use expressions in ColdFusion application pages to perform operations on data. Since you can embed expressions in ColdFusion Markup Language (CFML) tags and CFScript blocks, you can create standard programming logic to manipulate data.

For example, you can use expressions in the ColdFusion tags CFSET and CFIF to create standard IF-ELSE statements:

<CFIF 1 + 1 is 2>
    The world is rational.<BR>
<CFELSE>
    Go home, today's a bad day.<BR>
</CFIF>

Some of the uses for expressions are to:

What's in an expression?

Expressions can contain a wide variety of objects or elements. Expressions can be built using the following components:

Expression examples

For example:

See the CFML Language Reference for a full catalog of ColdFusion tags and functions.


BackUp LevelNext

allaire

AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.