[thelist] RE: JS Boolean Object... part 2
Tom Dell'Aringa
pixelmech at yahoo.com
Thu Dec 4 14:57:24 CST 2003
--- jsWalter <jsWalter at torres.ws> wrote:
> > I am trying to figure out how I can do this...
> > bolValue = someFunc ( someVar );
> >
> > if ( bolValue ) // true
> > // do something here
> > else
> > alert ( bolValue.err );
> I can get this to work...
>
> if ( bolValue == 'true' ) // not what I'm looking to do
> // do something here
> else
> alert ( bolValue.err );
> I'd rather not do this.
Why not? I'm a bit confused on what you are trying to do, can you
provide some more context? What is it you really are testing..
someVar? What does your someFunc() do?
Tom
=====
http://www.pixelmech.com/ :: Web Development Services
http://www.DMXzone.com/ :: JavaScript Author / Every Friday!
http://www.thywordistruth.net/ :: Eternal Life
[Those who say that I am finished, and am through, will have to run over my dead body to beat me...]
More information about the thelist
mailing list