Skip to content

Math Compare Op

Compares two numbers and returns a boolean result.

Compares two numbers using a specified operator.

Operators#

The node supports the following comparison operators:

Operator Description Example (op1=5, op2=3) Result
> Greater than 5 > 3 true
< Less than 5 < 3 false
>= Greater than or equal to 5 >= 3 true
<= Less than or equal to 5 <= 3 false
== Equal to 5 == 3 false
!= Not equal to 5 != 3 true

Inputs#

Port Description
The first number (left-hand side).
The comparison operator.
The second number (right-hand side).

Outputs#

Port Description
The boolean result of the comparison.

ID: core/math-compare-op@v1