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 wrote:
> >
> >> #IIF(myvar eq "1", DE("true"), DE("false"))#
> >
> > Actually you can get a little bi
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 wrote:
>
>> #IIF(myvar eq "1", DE("true"), DE("false"))#
>
> Actually you can get a little bit cleaner than this even:
>
> #iif(myvar,true,false)#
>
Indeed, evaluating to 1 is not strictly correct because:
false = 0
true = not false
Dominic
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk
> #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 e
You're possibly thinking of Railo's TrueFalseFormat function.
Does exactly the same as YesNoFormat, but with true and false.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Tr
om: Barney Boisvert [mailto:bboisv...@gmail.com]
> > Sent: Sunday, March 08, 2009 1:31 PM
> > To: cf-talk
> > Subject: Re: true false
> >
> >
> > YesNoFormat does it for yes and no, but nothing built in for true and
> > false.
> >
> > cheers,
> &g
rate you
would find elsewhere.
Professional. Dedicated. Effective.
The Easy 24/7 way to get started: http://www.goldengrove.net/
or you can call: (626) 593 - 5501
-Original Message-
From: William Seiter [mailto:will...@seiter.com]
Sent: Sunday, March 08, 2009 10:43 AM
To: cf-talk
Subject: RE:
You can build your own.
Not tested, but along these lines...
William
--
William E. Seiter
Need to have your mortgage modified?
I charge no fees until I am successful,
then I charge almost half the rate
Ah.. I was not dreaming. I knew there was something built in.
Thanks Barney!
> -Original Message-
> From: Barney Boisvert [mailto:bboisv...@gmail.com]
> Sent: Sunday, March 08, 2009 1:31 PM
> To: cf-talk
> Subject: Re: true false
>
>
> YesNoFormat does it for
YesNoFormat does it for yes and no, but nothing built in for true and false.
cheers,
barneyb
On 3/8/09, Chad Gray wrote:
>
> Isnt there a CF function that takes a 1 or 0 and converts it to display True
> or False?
>
> Or am I dreaming?
>
>
>
~~~
10 matches
Mail list logo