I was posting this before I got the other replies from other people
answering the quesiton. So I was not aware of your answer or anyone else's
answer. I takes so long for a post to occur. So I was not pointing my
fingers at anyone.
Sorry, If I offended you or anyone else. It was not intended too.
Nathan Stanford
Senior Programmer/Analyst
[EMAIL PROTECTED]
> -----Original Message-----
> From: Bryan Batchelder [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, May 01, 2001 2:31 PM
> To: CF-Talk
> Subject: RE: question using IIf
>
> No one said there wa anything 'wrong' with IIF, just that it is slower
> than
> other ways of doing things (read: I still use it occaisonally)...which is
> pretty undeniable when you run a benchmark comparing them. I would supply
> values, but I did the benchmarking nearly 2 years ago. No time to do it
> all
> again.
>
> --b
>
> Bryan Batchelder
> Web Application Developer
> ConnectWise, Inc.
> Phone: 813-935-7100 x 425
> Email: [EMAIL PROTECTED]
>
>
>
> > -----Original Message-----
> > From: Nathan Stanford [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 01, 2001 2:04 PM
> > To: CF-Talk
> > Subject: RE: question using IIf
> >
> >
> > I personally don't think there is anything wrong using iif...
> >
> > bgcolor = "#IIf(CurrentRow Mod 2, DE('ffffff'), DE('dddddd'))#"
> > class = "#IIf(CurrentRow Mod 2, DE('altcolor1'),
> > DE('altcolor2'))#"
> > I use both of these... the Class allows me to set the color
> > in the Style
> > sheet.
> >
> >
> > Nathan Stanford
> > Senior Programmer/Analyst
> > [EMAIL PROTECTED]
> >
> >
> > > -----Original Message-----
> > > From: David Baskin [SMTP:[EMAIL PROTECTED]]
> > > Sent: Tuesday, May 01, 2001 11:55 AM
> > > To: CF-Talk
> > > Subject: question using IIf
> > >
> > > I've been told that we should never use IIF and i just took
> > that on blind
> > > faith. I've seen everyone using it for their changing table
> > row background
> > > colors though so now i'm wondering if i've been told
> > something in error.
> > > can
> > > anyone shed any light on this? thanks in advance.
> > >
> > > david
> > >
> > > > <tr bgcolor="#iif(qName.CurrentRow MOD 2, DE('ffffff'),
> > DE('e8e8e8'))#">
> > >
> > >
> > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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