Jay,
How about the following nested Iif statement?
<tr bgcolor="#IIf(DirList.CurrentRow Mod 2, DE('FFFFE7'),
Iif(ElseIfCondition, DE('FAFAFA'), DE('OtherColorCode'))#">
I don't exactly understand what your conditions/results are, but I use this
sort of 3-way If statement all the time in Excel. An example:
MyVal LT 5, return "< 5"
MyVal GTE 5, AND LTE 10 return "5-10"
MyVal GT 10, return "> 10"
<CFSET MyResult="#Iif(MyVal LT 5, DE('<5'), Iif(MyVal LTE 10, DE('5-10'),
DE('>10')))#">
And you can, of course, keep nesting as deep as you want. Great in Excel,
where you must put all the processing in a single formula (unless you write
a VBA macro). Maybe it gets a little confusing here, though, where the
visually clearer CFIF statements are an option.
Hope this helps,
Matthieu
> -----Original Message-----
> From: Jay Patton [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 17, 2001 3:52 PM
> To: CF-Talk
> Subject: any ideas?
>
>
> does anyone know how i can make this tag output 3 colors instead of 2?
>
> <tr bgcolor="#IIf(DirList.CurrentRow Mod 2, DE('FFFFE7'),
> DE('FAFAFA'))#">
>
> thanks,
>
> Jay Patton
> Web Pro USA
> 406.549.3337 ext. 203
> 1.888.5WEBPRO
> www.webpro-usa.com
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists