I thought this sample would do that. 

> Yes, but I think he wanted it to display TRUE or FALSE the way the
> yesnoformat displays YES or NO.
> 
> On Sun, Mar 8, 2009 at 11:50 AM, s. isaac dealey <i...@turnkey.to> wrote:
> >
> >> #IIF(myvar eq "1", DE("true"), DE("false"))#
> >
> > Actually you can get a little bit cleaner than this even:
> >
> > #iif(myvar,true,false)#
> >
> > True and false don't need the DE wrappers because they're boolean values,
> > so they evaluate to themselves and then as long as myvar is a boolean,
> > you don't have to explicitly compare it to 1 (although you can if you like).

-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
     ph: 817.385.0301

http://onTap.riaforge.org/blog



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320246
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to