image\cslogo3d1.gif

JScript Boolean Object

The Boolean object creates a new Boolean value.

Methods & Properties: JScript Boolean Object

See JScript Object methods and properties.

Syntax: JScript Boolean Object

var variablename = new Boolean(boolvalue)

Arguments: JScript Boolean Object

boolvalue

The initital Boolean value for the new object. If this value is omitted, or is False, 0, Null, NaN, or an empty string, the initial value of the Boolean object is False. Otherwise, the initial value is True. Optional.

Remarks: JScript Boolean Object

The Boolean object is a wrapper for the Boolean data type. JScript implicitly uses the Boolean object whenever a Boolean data type is converted to a Boolean object.

You rarely call the Boolean object explicitly.

Copyright 2001 Sun Microsystems, Inc. All rights reserved. Legal Notice.