Thanks Russ (and Dave).

That's the route I ended up going to.  Kind of annoying as I think the Iif() 
method produces cleaner code (and I had already written it) but it is what it 
is.

--
Mosh Teitelbaum

Russ Michaels wrote
> If you are going to use a variable that doesn't exist then using this method 
> will cause you issues as cf will still try to evaluate both sides of it even 
> if false.

> There are ways round it using nested evaluate and de statements, but frankly 
> it just becomes messy and unreadable, I used to do this myself.
> You are better off just using cfif or switch statement instead.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360049
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to