No, I don't you can play with the mod value if you want to use IIf. IIf
wants a true or a false conditional, it can't handle three choices, without
nesting another IIF inside.
I suggest that you define a single-dimension array (in your app-globals, or
Application.cfm) called "color", perhaps.
Then, set
color[0] = 'FFFFE7'
color[1] = 'FAFAFA'
and
color[2] = 'xxxxxx' or whatever
Now your tag looks like this:
<tr bgcolor="#color[DirList.CurrentRow Mod 3]#">
Now isn't that prettier anyway? Works for n possible colors.
What do you think?
Thanks,
LBB.
-----Original Message-----
From: Warrick, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 11:42 AM
To: CF-Community
Subject: RE: any ideas?
Play with the Mod value (currently 2) until it works.
> -----Original Message-----
> From: Jay Patton [mailto:[EMAIL PROTECTED]]
>
> 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'))#">
>
IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee. It is confidential and may contain legally privileged
information. No confidentiality or privilege is waived or lost by any
mistaken transmission to you. If you receive this e-mail in error, please
immediately delete it from your system and notify the sender. You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient. The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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