Condition

Overview

Compares the item to check against the configured condition numeric value and continues only when the comparison is true. If value is missing or cannot be parsed as a number, the comparison is treated as false and the flow stops at this node.

Use it when a downstream branch should continue only after a numeric comparison passes. For example you can use it after evaluation or sampling nodes when the next step should run only if a numeric result passes a threshold.

Evaluate object detection Condition Export YOLO checkpoint

How it works

1

Reads Item to Check and Condition Value, and parses both as numbers.

2

Compares them with the selected operator.

3

Continues downstream when the comparison is true, and stops this execution path when it is false.

FAQ

The flow stops at this node, so nodes connected after it do not run. Work already finished upstream is kept.

No. Both sides are read as numbers. A value that is missing or cannot be parsed as a number counts as false, and the flow stops.

Usually from an upstream output wired into Item to Check, such as a metric or a count produced earlier in the flow.

Inputs

Item to check
stringRequired

Value being tested. Usually wired from an earlier node’s output, such as a count or a score. Key: ITEM_TO_CHECK.

Comparison operator
selectDefaults to greater_thanRequired

How the item is compared with the value below. Key: COMPARISON_OPERATOR.

Options:

  • Equal to (equal_to)
  • Greater than (greater_than)
  • Less than (less_than)
  • Greater or equal to (greater_than_or_equal_to)
  • Less or equal to (less_than_or_equal_to)
  • Not equal to (not_equal_to)
Condition value
numberRequired

Number the item is compared against. Flow continues while the comparison holds, and stops when it does not. Key: CONDITION_VALUE.

JSON config

Machine-readable node interface for automation and advanced usage.

{
"name": "Condition",
"description": "Evaluate a condition on a given item and proceed based on the result. If the condition is not met, the flow will stop.",
"category": "Flow control",
"namespace": null,
"templateKey": "flow_control/condition",
"version": "v1",
"inputs": [
{
"key": "ITEM_TO_CHECK",
"label": "Item to check",
"type": "string",
"description": "Value being tested. Usually wired from an earlier node's output, such as a count or a score.",
"required": true,
"default": null,
"visibleWhen": null
},
{
"key": "COMPARISON_OPERATOR",
"label": "Comparison operator",
"type": "select",
"description": "How the item is compared with the value below.",
"required": true,
"default": "greater_than",
"visibleWhen": null,
"options": {
"options": [
{
"label": "Equal to",
"value": "equal_to"
},
{
"label": "Greater than",
"value": "greater_than"
},
{
"label": "Less than",
"value": "less_than"
},
{
"label": "Greater or equal to",
"value": "greater_than_or_equal_to"
},
{
"label": "Less or equal to",
"value": "less_than_or_equal_to"
},
{
"label": "Not equal to",
"value": "not_equal_to"
}
]
}
},
{
"key": "CONDITION_VALUE",
"label": "Condition value",
"type": "number",
"description": "Number the item is compared against. Flow continues while the comparison holds, and stops when it does not.",
"required": true,
"default": null,
"visibleWhen": null
}
],
"outputs": []
}