Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

explain new ternary feature in cf9 #39

Open
mhenke opened this Issue Jul 31, 2011 · 1 comment

Comments

Projects
None yet
2 participants
Owner

mhenke commented Jul 31, 2011

< !---
< 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>
Contributor

ntunney commented Jan 19, 2012

I can grab this one next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment