Loading

op.add

op

Pushes onto the stack an operator which, in an APPLY, will add the values of the parameter Geo Time Series™.

The type of the result is determined by the first value encountered.

If the result is of type STRING, then the operator acts as a concatenation.

When the result is numeric, STRING values will cause an error, and BOOLEAN values will be converted to 1 (true) or 0 (false).

This operator forbids null values, i.e. if a null is encountered, then there will be no result for the given tick.

op.add is available since version 1.0.11.

See also

Signatures

Examples

[ [ NEWGTS "GTS1" RENAME { 'label0' '42' } RELABEL 10 NaN NaN NaN 46.5 ADDVALUE 20 NaN NaN NaN 23 ADDVALUE 30 NaN NaN NaN 42 ADDVALUE NEWGTS "GTS2" RENAME { 'label0' '53' } RELABEL 10 NaN NaN NaN -42 ADDVALUE 20 NaN NaN NaN 42 ADDVALUE ] [ NEWGTS "GTS3" RENAME { 'label0' '42' } RELABEL 10 NaN NaN NaN -4.5 ADDVALUE 15 NaN NaN NaN 2 ADDVALUE 20 NaN NaN NaN 19 ADDVALUE NEWGTS "GTS4" RENAME { 'label0' '53' } RELABEL 10 NaN NaN NaN 0 ADDVALUE 15 NaN NaN NaN 0 ADDVALUE 20 NaN NaN NaN 0 ADDVALUE NEWGTS "GTS5" RENAME { 'label0' '4253' } RELABEL 10 NaN NaN NaN 12 ADDVALUE 15 NaN NaN NaN 42 ADDVALUE 20 NaN NaN NaN 53 ADDVALUE ] [ 'label0' ] op.add ] APPLY