Salesforce B2C Commerce 23.5 > B2C Commerce API > B2C Commerce Script > TopLevel
TopLevel
Class Boolean
Object
Boolean
Provides support for boolean values.
Constructor Summary
Boolean(value : String)
Constructs the Boolean using the specified String value.
Boolean(value : Number)
Constructs the Boolean using the specified Number value.
Method Summary
toString() : String
Returns true or false depending on the value used to create the Boolean.
valueOf() : Object
Returns the primitive boolean contained in the Boolean object.
Methods inherited from class Object
Constructor Detail
Boolean
public Boolean(value : String)
Constructs the Boolean using the specified String value.
Parameters:
value - the String value to use to construct the Boolean. If value is null or an empty String, the Boolean is set to false.

Boolean
public Boolean(value : Number)
Constructs the Boolean using the specified Number value.
Parameters:
value - the Number value to use to construct the Boolean. If value is null or 0, the Boolean is set to false.

Method Detail
toString
toString() : String
Returns true or false depending on the value used to create the Boolean.
Returns:
true or false depending on the value used to create the Boolean.

valueOf
valueOf() : Object
Returns the primitive boolean contained in the Boolean object.
Returns:
the primitive boolean contained in the Boolean object.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.