Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Uipath maestro flow/Branch
Reference · Uipath maestro flow

Branch

Part of Uipath maestro flow. Install the skill and your agent reads this page when it needs the depth.

Branch

Branch makes a two-way runtime decision.

Signature: .branch(name, condition, thenFn, elseFn?). Each callback receives a sub-builder and may use .label(text) for its edge label.

.branch('large', js`${input('amount')} > 1000`,
  (yes) => yes.step('review', script({ code: 'return "review";' })),
  (no) => no.step('approve', script({ code: 'return "approved";' })))

Use Branch when the scenario has two paths. Whether each arm should end locally or fall through to shared work is a business-flow choice.

The two sequence ports are true and false. Arm .label(text) values become trueLabel and falseLabel, defaulting to True and False.

At a glance

Split runtime control into true and false paths.

Use branch for a two-way decision; decide whether arms return or ref back into shared work.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.