CFML-in-100-minutes
CFML-in-100-minutes copied to clipboard
explain new ternary feature in cf9
< !--- < 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>
I can grab this one next.