I should let Isaac explain, since he did all the hard work, but I'll try. The first 2 hash marks (##) output the hash symbol (The first # escapes the second #, which results in a single # being output)
The next two hash marks surround a Cold Fusion function, iif() The iif() function is the "immediate if". It evaluates a condition to true and false, and if true it outputs the first string, if false it outputs the second string iif(condition,truestring,falsestring) - so iif(fname eq "Jerry", "It's me!", "It's not me") The condition statement uses the mod function, which returns the left over (modulus) or currentrow divided by 2 If currentrow is a multiple of 2 (2, 4, 6..), it returns a 0. If not it returns a 1. The first and second strings use the DE function to "delay evaluation', or basically just output the string exactly as is. The DFDFDF is a grey color. Does this help? And I will note for the record that the first line will be grey, the second white and so on. Jerry Johnson >>> [EMAIL PROTECTED] 11/27/02 12:03PM >>> Could you please explain what the following statement does? "###iif(currentrow mod 2, DE('DFDFDF'), DE('FFFFFF'))#" Cutter S. Isaac Dealey wrote: ><cfoutput query="latestlinks"> > <tr bgcolor="###iif(currentrow mod 2, DE('DFDFDF'), DE('FFFFFF'))#"> > <td width="2%" align="center" class="sideblue" valign="middle"> > <img border="0" src="height.gif" width="1" height="14"></td> > <td width="8%" align="left" class="sideblue" > valign="middle">#currentrow#.</td> > <td width="90%" valign="middle"> > <a href="#linkurl#" class="xmaslinking">#linktitle#</a> > </td> > </tr> ></cfoutput> > >Try this -- less code. :) > >s. isaac dealey 954-776-0046 > >new epoch http://www.turnkey.to > >lead architect, tapestry cms http://products.turnkey.to > >certified advanced coldfusion 5 developer >http://www.macromedia.com/v1/handlers/index.cfm?ID=21816 > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com