Loopfour
WorkflowsSteps

Make a decision

Add a decision step that sends the workflow down one path or another, for example when an amount is over your approval limit or a status changes.

A decision step checks a value and sends the workflow one way if the answer is yes, and another way if it is no. It is how you write an approval limit or a status check into a workflow.

  1. StepRead the bill
    The total is found.
  2. DecisionTotal over $10,000?
    The Condition block checks it.
  3. ApprovalIf yes: controller approves
    The If path.
  4. OutputIf no: bill is created
    The Else path.

Before you start

Add a decision

Add the Condition block

Drag Condition from Core Blocks onto the canvas, after the step that finds the value.

Write the check

Choose the block. Under Conditions, each row has three parts:

  • Field: the value to check, such as the bill total from the earlier step.
  • The comparison, such as > (greater than) or contains.
  • Value: what to compare against, such as 10000.

Add more checks, if needed

Add more rows to check several things. Under Combine With, choose AND — all must be true or OR — any must be true.

Join the two paths

The block has two ways out. Join If to the steps for "yes" and Else to the steps for "no".

Comparisons you can use

ComparisonMeansExample
=, !=is, is notStatus is "paid"
>, <, >=, <=more than, less thanTotal is more than 10000
contains, starts with, ends withthe text includesVendor name contains "Ltd"
exists, is emptyhas a value, or has nonePO number is empty
matchesfollows a text pattern your developer writesInvoice number follows your format

Good to know

  • For number comparisons, Loopfour ignores $, €, £, ¥ signs and thousands commas, so $10,000 and 10000 compare the same.
  • A missing or unreadable amount counts as 0 in a number comparison. So "less than 10000" comes out as yes when the amount is missing. To keep missing amounts on the safer path, check "amount exists" AND "amount < 10000" on If, and send Else to approval.
  • Each path can lead to as many steps as you need.

Check it worked

Run the workflow with one case for each path, such as a small bill and a large bill. Open each run under Runs and check which path it took.

If something goes wrong

If the wrong path runs, compare the value received with your condition, including missing values and number formats. See Read a run step by step. For a failed step, see Error messages explained.

On this page