docs/src/course/04-workflows/18-understanding-conditional-branching.md
Learn how to create workflows that take different paths based on data conditions, making your workflows more intelligent and adaptive.
Conditional branching allows workflows to:
Imagine a content processing workflow that:
.branch([
[condition1, step1],
[condition2, step2],
[condition3, step3]
])
Where:
true or falsetrueConditions are functions that examine the input data:
// Example condition function
;async ({ inputData }) => {
return inputData.wordCount < 50
}
true, all matching steps run in paralleltrue, the workflow continues without executing any branch stepsNext, you'll create a workflow with conditional branches!