Loading

reducer.or

reducer

The reducer.or function outputs the result of the logical operator OR for each tick value of Geo Time Series™ which are in the same equivalence class.

The location and elevation returned are the first one encountered, which may vary depending on the order of the parameters.

The reducer.or function can be applied to values of any type, when not applied to BOOLEAN types, the current value is considered to be false.

The standard version of this reducer, reducer.or, will return null for any tick where one or more GTS have null values. The exclude null version, reducer.or.exclude-nulls, will exclude all null values when computing the OR.

reducer.or is available since version 1.0.11.

See also

Signatures

Examples

[ [ NEWGTS 'GTS1' RENAME 100 NaN NaN NaN true ADDVALUE 200 NaN NaN NaN false ADDVALUE 300 NaN NaN NaN true ADDVALUE 400 NaN NaN NaN false ADDVALUE 600 NaN NaN NaN true ADDVALUE 800 NaN NaN NaN true ADDVALUE NEWGTS 'GTS2' RENAME 100 NaN NaN NaN true ADDVALUE 200 NaN NaN NaN true ADDVALUE 300 NaN NaN NaN true ADDVALUE 400 NaN NaN NaN false ADDVALUE 500 NaN NaN NaN false ADDVALUE 700 NaN NaN NaN false ADDVALUE ] [] reducer.or ] REDUCE