Microsoft® JScript
Logical Operators Behavior
Language Reference 


The following table describes the behavior of Microsoft JScript logical operators. The columns and rows represent the different types of expressions possible on either side of an logical operator in JScript, and the entries in the table describe the behavior.

This table applies to the following logical operators:


An E in the table indicates a run-time error and a B indicates a Boolean result.

 objasnsnumboolundefnull
objBEBBBEE
asEEEEEEE
nsBEBBBEE
numBEBBBEE
boolBEBBBEE
undefEEEEEEE
nullEEEEEEE

obj = object, as = alphanumeric string, ns = numeric string, num = number, bool = Boolean, undef = undefined, null = null value.


© 1996 by Microsoft Corporation.


Casa de Bender