Does Pipedream Support Branches?

This topic was automatically generated from Slack. You can find the original thread here.

does Pipedream support branches?

Pipedream does not currently support the concept of branches like you’d find in version control systems such as Git. Workflows in Pipedream are individual entities and do not have branching functionality within the Pipedream platform itself. However, you can use Pipedream’s GitHub integration to sync your workflows with a GitHub repository, where you can leverage Git’s branching capabilities for version control of your workflow code.

No, I mean taking different steps/actions based on a condition

Yes, Pipedream supports conditional logic within workflows, allowing you to take different actions based on conditions. You can use the $end method to end a workflow early based on a condition, or you can use Node.js code steps to execute different logic based on the data you process in your workflow. Here’s an example of how you might use a Node.js code step to conditionally run different actions: if (steps.trigger.event.body.someCondition) { // Run some logic } else { // Run some other logic } You can also use built-in actions like “Filter” to conditionally execute steps based on simple boolean logic. For more complex branching logic, you would typically handle that within a code step, using standard JavaScript conditional statements (like if, else if, else, switch, etc.).

It seems like I have to do it via Node.js code step. Can I use built-in steps conditionally?

currently you have to implement conditional logic in code, but we’re working on branching / looping support in the UI right now! No ETA for when that’s out, but it’s our top priority

1 Like

Great to hear !

Hey, regards this will you make sure theres an easy way to add branches to existing workflows. Also hows the progress! Eager to move away from make : p

Here’s the GitHub issue to track this feature.