Comparison Block

Comparison Block

The Comparison block emits True when the comparison between two input signals is true. It has six different modes of operation: Equal, NotEqual, GreaterThan, GreaterThanOrEqual, LessThan, and LessThanOrEqual.

Note - Equal and NotEqual options look for exact floating point agreement. This can lead to confusion, particularly when the app time step results in close but not exactly the expected value, like zero-crossings.

Parameters

  • Method [Equal | NotEqual | GreaterThan | GreaterThanOrEqual | LessThan | LessThanOrEqual]
    • Equal: Emits True when the first input signal exactly equals the second input signal, otherwise False
    • NotEqual: Emits True when the input signal does not exactly equal the second input signal, otherwise False.
    • GreaterThan Emits True when the input signal is greater than the second input signal, otherwise False.
    • GreaterThanOrEqual Emits True when the input signal is greater than or exactly equal to the second input signal, otherwise False.
    • LessThan Emits True when the input signal is less than the second input signal, otherwise False.
    • LessThanOrEqual Emits True when the input signal is less than or exactly equal to the second input signal, otherwise False.

Examples

Comparison Example