Represents a Boolean value of
true or
false.
Constructors
Boolean ( )
Initializes a new Boolean instance with a value of
false.
Syntax:Boolean( )
Example:
b = new Boolean(); // results in false
Initializes a new Boolean instance by converting the specified string to a boolean. "true" =
true, "false" =
false, not case-sensitive.
Syntax:Parameters:Example:
s = "true";
b = new Boolean( s ); // results in true
Initializes a new Boolean instance by converting the specified number to a boolean. 0 results in a value of
false, all other numeric values result in
true.
Syntax:Parameters:Example:
i = 100.25;
b = new Boolean( b ); // results in true.
Initializes a new Boolean instance to the specified value.
Syntax:Parameters:Example:
b1 = true;
b2 = new Boolean( b1 ); // results in true.
// equivalent to
b2 = b1;
Initializes a new Boolean instance to a value of
true for any values other than those specified by other constructors.
Syntax:Parameters:Example:
dict = new Dictionary();
b = new Boolean( dict ); // results in true.