next up previous contents
Next: Number object Up: FFish Script Objects Reference Previous: encodeURIComponent   Contents


Boolean object

Description

Creates a new Boolean value.


Syntax

new Boolean([x])


Parameters

x
Optional. It is 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.


Remarks

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

You rarely call the Boolean object explicitly.




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.