A single filter definition
Table of content
The Compare (Numeric) compares two attributes against each other.
Note that each value is converted to a
doubleunder the hood, so you canβt compare multi-component value with it.

Properties
| Property | Description |
|---|---|
| Operand A | |
| Operand A | The first attribute of the comparison. |
| Comparison | |
| Comparison | How to compare A against B. See Numeric comparisons. |
| Operand B | |
| Compare Against | Type of operand B. Can be a per-point Attribute, or an easily overridable Constant. |
| Operand B (Constant or Attribute) | Operand B, or second value to compare to the first. |
| Tolerance | Equality tolerance for near-value comparisons. |
Comparison modes
| Comparison | Data |
|---|---|
| == | Strictly equal. |
| != | Strictly not equal. |
| >= | Equal or greater. |
| <= | Equal or smaller. |
| > | Strictly greater. |
| < | Strictly smaller. |
| ~= | Nearly equal. |
| !~= | Nearly not equal. |
Approximative comparison will reveal an additional parameter, dubbed
Tolerance. This represents the size of acceptable approximation for the comparison to pass. For example, when checking if0.5 ~= 0.4with a tolerance of0.1will returntrue.
Large tolerances can be a great, cheap way to achieve results akin to a βwithin rangeβ comparison!