Loading

mapper.toboolean


mapper
Since v1.0.11
Available on all platforms
See also

This mapper function converts the single value in a sliding window to BOOLEAN.

The mapper.toboolean function can be applied to data of type BOOLEAN, STRING, LONG or DOUBLE.

Signature

Examples

[ [ NEWGTS "GTS.1" RENAME 10 NaN NaN NaN 'true' ADDVALUE 20 NaN NaN NaN '' ADDVALUE NEWGTS "GTS.2" RENAME 10 NaN NaN NaN 0 ADDVALUE 20 NaN NaN NaN 42 ADDVALUE ] mapper.toboolean 0 0 0 ] MAP