All templates
Flow ControlIntermediate
Use the AND Operator in Conditionals
Robomotion•Updated 9 months ago

Overview
Shows how to branch a flow only when two conditions are both true using a Switch node with a combined predicate.
Use the AND Operator in Conditionals
Logical operators enable users to create complex logical expressions and implement advanced logic in their flows. For example, they can use the "AND" logical operator to create expressions that are true when all the provided conditions are valid.
What Use the AND Operator in Conditionals can do
- Seed inputs (
Core.Programming.Function) —msg.tool = 'Robomotion'; msg.company = 'Robomotion Inc.';. - AND test (
Core.Programming.Function,outputs: 2) —return (msg.tool === 'Robomotion' && msg.company === 'Robomotion Inc.') ? [msg, null] : [null, msg];. - Port 0 shows
Core.Dialog.MessageBoxtitledFlow ran successfully!with bodyAll the provided conditions were true.(optType: 'info'). - Port 1 goes straight to
Core.Flow.Stop(no else branch).
Behind the scenes
- The teaching point is that every predicate must be true to enter the then-branch. Learners often assume
ANDshort-circuits are distinct fromOR— emphasise the truth-table. - Both seeded values deliberately match, so the happy-path dialog fires on first run; flip either assignment to see the else path short-circuit to
Core.Flow.Stop.
More flow control templates
See all 7 →- Denial Worklist TriageWorks a clinic's denied insurance claims, choosing a different action for each denial code: fix and resubmit the ones missing a field the chart already has, write off what the payer will never cover, void duplicates of already-paid claims, and escalate the ones that need a human to call the payer. Waits for the resubmitted claims to be re-adjudicated, then reads each claim's real status back off the table and writes denial-actions.csv.
- Leave Request PolicingProcesses the pending leave requests in an HR system by policy: approves the ones that are clean and denies the ones that break a rule - an insufficient balance, an overlap with a teammate already off, or a request inside the month-end blackout - writing the reason into the required comment box. Brings only the edge cases to a human. Writes a decision CSV.
- Use Conditionals to Check if File ExistsChecks whether a given file is present on disk and routes the flow accordingly. A textbook conditional branching example.
- Use Labels to Check if File ExistsUses Label and GoTo to structure a loop that rechecks file existence — a non-sequential flow pattern useful for polling.
- Use Subflows to Check if File ExistsEncapsulates a "does this file exist?" check inside a reusable subflow so the main flow stays linear and readable.
- Use the OR Operator in ConditionalsCombines two conditions with a logical OR and branches the flow based on the result. Complements the AND-operator variant.