Click or drag to resize
BoolType data type
Print this page

The data type BoolType represents either True or False.

Field length

The effective range of this data type is: 0 or 1

JavaScript conversion

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.

JavaScript
if(row.Ignition && !(row.SeatBeltFastened)) {
return [row];
}
return [];
Creation
JavaScript
var myBool = false;
Methods

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