Boolean (Object)
Top  Previous  Next


A boolean Object is used to store a boolean (true / false) value.
The constants true and false are provided to allow assignment of those values.

SWiSH Player Support
Supported Internally

Sample
myBool = true;
myBool = false;
myBool = (a < 5
);   // true if a was previously assigned a value < 5

Flash MX Differences
The Flash MX boolean Object contains a number of methods that can be applied to it such as toString(), valueOf(), etc. The SWiSHscript boolean Object does not support any Flash MX boolean Object methods.