You could also do it like this:
<tr
<CFIF latestlinks.currentrow MOD 2 is 1>
bgcolor="##DFDFDF"
<CFELSE>
bgcolor="##FFFFFF"
</CFIF>>
which I think is slightly faster in CF5 or earlier.
Regarding DE, or Delay Evaluation, this is straight from CF5 docs:
"DE prevents evaluation of a string as an expression when it is passed as an argument
to IIf or Evaluate."
----- Original Message -----
From: charlie griefer
To: CF-Talk
Sent: Wednesday, November 27, 2002 11:23 AM
Subject: Re: Alternating Row Colours & Number Listing in CFOutput
Cutter (CF_Talk) writes:
> Could you please explain what the following statement does?
>
> "###iif(currentrow mod 2, DE('DFDFDF'), DE('FFFFFF'))#"
actually, i'd appreciate an explanation as well. I understand the
IIF()...but i never really understood DE()...what exactly it does or why it
makes the world a better place :)
thx.
charlie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm