Skip to content
MoveWorkflows

Pipedream control flow → n8n If, Switch and Merge nodes

Updated 2026-10-21 · 3 min read

Check your Pipedream export
Drop your Pipedream export hereProject export ZIP, GitHub Sync repo (ZIP or folder) or workflow JSON / YAMLRead in your browser. Files are never uploaded.
In short
  • If/Else becomes the n8n If node, Switch the Switch node, Parallel ends in a Merge node.
  • Branch steps sit in the export's deployments field, not in the main steps list.
  • Check every branch condition by hand after import.
On this page · 6 sections
  1. What to do now
  2. Mapping
  3. Where branches live in the export
  4. Conditions
  5. Segments and billing
  6. Next steps

Conceptually, each Pipedream control flow operator has a direct n8n counterpart. If/Else becomes the n8n If node. Switch becomes the Switch node. Parallel branches join again with a Merge node.

Converting them automatically is less certain. The export stores branch steps apart from the main step list. A converter that ignores them silently drops part of the workflow. And branch conditions always need a check by hand after import.

What to do now

  1. Find the workflows with branches. The free report shows which of your workflows use them.
  2. Check that the branch steps arrived. After import, open each branch in n8n and compare it with Pipedream.
  3. Check every condition by hand. Look at the references to earlier steps and at the value types. Both are explained under "Conditions" below.
  4. Join split workflows. A workflow you split up in Pipedream to save credits can usually be one workflow in n8n.

Mapping

Pipedream operator n8n node Notes
If/Else If Two outputs: true and false
Switch Switch Several outputs, Rules or Expression mode
Parallel Several connections from one node, then Merge Merge waits until all inputs have data
Filter (continue / exit on condition) Filter Items that fail the condition are dropped
End Workflow / $.flow.exit() No node needed: a branch with no further nodes ends; or a Code node returning []
Delay / $.flow.delay Wait Continues after an interval, at a set time, or when a webhook is called
Loop in code Loop Over Items Often not needed: most n8n nodes already run once per item

Pipedream documents its operators under control flow. If/Else is marked beta there. Switch and Parallel have their own pages.

Where branches live in the export

Each workflow file in the Pipedream export has a steps list and a deployments field. The steps inside if/else and switch branches are in deployments.

Some converters read only steps and wire the nodes in a straight line. The result imports fine but skips everything inside the branches. Check this on any conversion tool before you trust its output.

Our converter reads deployments and tries to rebuild the branches as If and Switch nodes. It joins parallel paths with Merge. But Pipedream documents deployments only in prose. We haven't yet seen a real export with branches: none of the public workflows we checked used them.

So the report marks every workflow with branches yellow. Check each branch condition by hand after import. If the converter can't read a branch at all, it marks the workflow red instead of silently dropping steps.

Conditions

A Pipedream condition compares a value from an earlier step using an operator. n8n's If and Switch nodes do the same. They use typed comparisons (string, number, date, boolean, array, object) and expressions such as {{ $json.amount }}. After conversion, check two things in particular:

  • References: steps.charge.$return_value.amount becomes $('charge').first().json.amount.
  • Types: n8n compares by the type you choose. A number may arrive as the string "10". It may then need conversion, or the Less Strict Type Validation option documented for the Switch and Filter nodes.

Segments and billing

Pipedream timed and billed each linear segment between operators separately. n8n Cloud counts one execution per workflow run, however many branches and nodes it passes through (n8n pricing). That is why split workflows can usually be joined again.

Next steps

Not affiliated with Pipedream or n8n.

FAQ

What is the n8n equivalent of Pipedream If/Else?

The If node. It splits the workflow into a true and a false output based on conditions.

How do I branch to more than two paths in n8n?

Use the Switch node. It works like the If node but supports multiple output routes, with rules or an expression.

How do I join branches again in n8n?

Use the Merge node. It combines data from several inputs once all of them have data.

Does the Pipedream export include steps inside branches?

Yes. The steps inside if/else and switch branches are in the deployments field of each workflow file, not in the main steps list.