Skip to content

Continue If

Class: ContinueIfBlockV1

Source: inference.core.workflows.core_steps.flow_control.continue_if.v1.ContinueIfBlockV1

Based on provided configuration, block decides if it should follow to pointed execution path

Type identifier

Use the following identifier in step "type" field: roboflow_core/continue_if@v1to add the block as as step in your workflow.

Properties

Name Type Description Refs
name str Enter a unique identifier for this step..
condition_statement StatementGroup Define the conditional logic..

The Refs column marks possibility to parametrise the property with dynamic values available in workflow runtime. See Bindings for more info.

Available Connections

Compatible Blocks

Check what blocks you can connect to Continue If in version v1.

Input and Output Bindings

The available connections depend on its binding kinds. Check what binding kinds Continue If in version v1 has.

Bindings
  • input

    • evaluation_parameters (*): Data to be used in the conditional logic..
    • next_steps (step): Steps to execute if the condition evaluates to true..
  • output

Example JSON definition of step Continue If in version v1
{
    "name": "<your_step_name_here>",
    "type": "roboflow_core/continue_if@v1",
    "condition_statement": {
        "statements": [
            {
                "comparator": {
                    "type": "(Number) =="
                },
                "left_operand": {
                    "operand_name": "left",
                    "type": "DynamicOperand"
                },
                "right_operand": {
                    "type": "StaticOperand",
                    "value": 1
                },
                "type": "BinaryStatement"
            }
        ],
        "type": "StatementGroup"
    },
    "evaluation_parameters": {
        "left": "$inputs.some"
    },
    "next_steps": [
        "$steps.on_true"
    ]
}