[thelist] RE: JS Boolean Object... part 2
jsWalter
jsWalter at torres.ws
Thu Dec 4 13:19:20 CST 2003
> -----Original Message-----
> From: jsWalter [mailto:jsWalter at torres.ws]
> Sent: Thursday, December 04, 2003 12:54 PM
> To: thelist at lists.evolt.org
> Subject: JS Boolean Object...
>
>
> I am trying to figure out how I can do this...
>
> bolValue = someFunc ( someVar );
>
> if ( bolValue ) // true
> // do something here
> else
> alert ( bolValue.err );
BTW...
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.
Walter
More information about the thelist
mailing list