Decisions and conditions
A Decision chooses the next path using a value available in the Flight. Use one to route content for review, skip an item that has already been processed, or choose between creating and updating a record.
Configure a Decision
Section titled “Configure a Decision”- Open Add item and choose Decision.
- Select a value from the trigger or an earlier step.
- Choose the comparison offered for that value’s type and supply a comparison value when needed.
- Connect the matching branch to the steps for that outcome.
- Connect the fallback branch to the steps used when the condition does not match.
Use numbers for numeric comparisons, booleans for true/false checks, and text for identifiers or labels. A displayed score of 0.85 is not interchangeable with 85; use the scale documented by the action that produced it.
Choose a comparison
Section titled “Choose a comparison”The editor offers comparisons according to the selected value’s type:
| Value | Common condition | Example |
|---|---|---|
| Number | Equal to, greater than, or less than a threshold | Segments under the quality threshold greater than zero → review |
| Text | Matches a value or contains text | A subject contains the agreed request label → process |
| Boolean | Equals True or False | Has other Flights equals True → end the Flight |
Check optional values before comparing them. Missing text, an empty string, zero, and False have different meanings. Include the missing-value path explicitly when the preceding action can omit its output.
For AND, chain two Decisions so the second is reached only when the first matches. For OR, route either matching branch to the same next step. This makes multi-part rules clear without relying on an implicit combination of conditions.
Example: create or update a deal
Section titled “Example: create or update a deal”Suppose a Plunet order stores the ID of its corresponding HubSpot deal:
| Condition | Branch | Result |
|---|---|---|
| A HubSpot deal ID is present | Update | Update that deal using its stored ID |
| No HubSpot deal ID is present | Create | Create a deal and save its returned ID on the Plunet order |
Keeping the returned ID prevents a later status change from creating another deal. See the Plunet–HubSpot example.
End a Flight or leave a loop
Section titled “End a Flight or leave a loop”Use End Flight when the current Flight has no more work to do. Use End loop to leave the current loop. Ending either does not reverse actions that have already changed another system.
For example, after checking for another active Flight, configure End Flight to apply when Has other Flights equals True. See overlap protection.
In the editor, these operators can have their own condition. When authoring through the API or MCP, use a Decision branch leading to flow.endFlight or flow.endLoop: the current definition format does not preserve the editor’s condition on the end operator itself. Review such conditions before replacing an editor-authored definition through the API.
Check both outcomes
Section titled “Check both outcomes”Fly the Bird with one item that matches and one that does not. Inspect the chosen branch and destination changes in each Flight. Include a missing-value case when the field is optional. For review scores, also test the exact threshold and a score on either side of it.