CFML-in-100-minutes icon indicating copy to clipboard operation
CFML-in-100-minutes copied to clipboard

explain new ternary feature in cf9

Open mhenke opened this issue 13 years ago • 1 comments

< !--- < cfif Val(rsArtists.IsSold)> < cfset numberSold ++ /> < /cfif> --- >

        < cfset numberSold = Val(rsArtists.IsSold) ? ++ numberSold : numberSold />

         < cfset totalPieces ++ />
        < tr class="#(totalPieces MOD 2 EQ 0) ? "evenRow" : "oddRow"#">
            < td>#rsArtists.ArtName#</td>
            < td>#YesNoFormat(rsArtists.IsSold)#</td>
        < /tr>

mhenke avatar Jul 31 '11 16:07 mhenke

I can grab this one next.

ntunney avatar Jan 19 '12 03:01 ntunney