Quartz Composer JavaScript Reference © Cybero Designs  

Boolean

Type Object
Format new Boolean (value)
Commentary
he Boolean object is an object wrapper for a boolean value.The value passed as the first parameter is converted to a boolean value, if necessary. If value is omitted or is 0, -0, null, false, NaN, undefined, or the empty string (""), the object has an initial value of false. All other values, including any object or the string "false", create an object with an initial value of true.
Sample code - QC 2 JavaScript
flag = new Boolean (true);
outputs [0] = flag.toString ();
Sample code - QC 3 JavaScript
var flag = new Boolean(true);
function (__string outputArray) main ()
{ var result = new Object();
result.outputArray = flag.toString();
return result; }


Return to the Start Page