Skip to main content

Logical number condition

The number condition function is a logical function that returns true if the condition is met, and false otherwise. Each node evaluates a single condition; wire several nodes in parallel (or combine their outputs with AND / OR conditions) to test several conditions.

Example
Condition: Greater than 0
Input: 10
Output: true

Parameters

Conditionrequired

The condition to be fulfilled, composed of an operator and a static number value (for example: Greater than 0). Defaults to Equal 0. The available operators are:

  • Equal
  • Greater than
  • Greater or equal
  • Lower than
  • Lower or equal
  • In — the value field takes a comma-separated list of numbers; the condition is met when the input equals one of them.

Input

Numberrequired

The number to be evaluated by the condition.

Compare to

Optional second number. When wired, the operator is applied between the two inputs (Number on the left, Compare to on the right) and the static value of the condition is ignored. In this mode the In operator degrades to a plain equality check between the two inputs.

Output

Boolean

The result of the condition (true or false).