Miiflow Docs

Condition Node

The Condition Node adds branching logic to your workflows, allowing different paths based on data values.

Overview

Use Condition Nodes to:

  • Route data based on conditions
  • Handle different scenarios
  • Filter or validate inputs
  • Create decision trees

Configuration

Condition Expression

Define the condition to evaluate. Examples:

{{input.score}} > 0.8
{{input.type}} == "question"
{{input.text}}.length > 100

Branches

  • True Branch - Executed when condition is met
  • False Branch - Executed when condition is not met

Supported Operators

OperatorDescription
==Equal to
!=Not equal to
>Greater than
<Less than
>=Greater than or equal
<=Less than or equal
containsString contains
startsWithString starts with

Combining Conditions

Use logical operators:

  • && - AND (both conditions must be true)
  • || - OR (either condition can be true)

Example:

{{input.score}} > 0.5 && {{input.confidence}} > 0.8