BoolType data type |
The data type BoolType represents either True or False.
The effective range of this data type is: 0 or 1
When you use the optional [Script] section to insert your own JavaScript functions, BoolType maps to JavaScript Boolean, with JavaScript native Boolean assignment.
In your script, you can use all JavaScript comparison and logical operators to test for true or false.
if(row.Ignition && !(row.SeatBeltFastened)) { return [row]; } return [];
var myBool = false;
These are the native JavaScript methods for Boolean objects:
toString() — Converts a Boolean value to a string, and returns the result
valueOf() — Returns the primitive value of a Boolean object