[thelist] JS Boolean Object...

jsWalter jsWalter at torres.ws
Thu Dec 4 12:53:43 CST 2003


I am trying to figure out how I can do this...

bolValue = someFunc ( someVar );

if ( bolValue )  // true
    // do something here
else
    alert ( bolValue.err );


As you can see, I need to define a var as a Boolean and if I have a problem,
add a message element to the Object.

Nothing I do seems to work.

Anyone know if I'm barking up the wrong tree. again.

Thanks

Walter




More information about the thelist mailing list