Skip to main content

invert

Syntax

- invert

Description

The invert operation does not take any arguments. For boolean values, it inverts the output of the previous operation such that true becomes false, and false becomes true.

If the previous operation produces a numeric value, the invert operation negates it arithmetically — for example, 5 becomes -5 and -3 becomes 3.

Examples

  var1:
- source: AIN0
- threshold: 4
- invert
info

In the above example, AIN0 is an identifier available in LabJack data sources.