Skip to content

First Non Empty Or Default

Version v1

Takes input data which may not be present due to filtering or conditional execution and fills with default value to make it compliant with further processing.

Type identifier

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

Properties

Name Type Description Refs
name str The unique name of this step..
default Any Default value that will be placed whenever there is no data found.

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

Available Connections

Check what blocks you can connect to First Non Empty Or Default in version v1.

The available connections depend on its binding kinds. Check what binding kinds First Non Empty Or Default in version v1 has.

Bindings
  • input

    • data (*): Reference data to replace empty values.
  • output

    • output (*): Equivalent of any element.
Example JSON definition of step First Non Empty Or Default in version v1
{
    "name": "<your_step_name_here>",
    "type": "roboflow_core/first_non_empty_or_default@v1",
    "data": "$steps.my_step.predictions",
    "default": "empty"
}