Weekday or Weekend sub-workflow

Hi there. New to n8n. I came across an issue that I cant seem to figure out, or find an answer for.

I have a workflow triggered by a webhook, that I’d like to continue on to 2 seperate sub- workflow depending on if it’s a weekday or weekend. I can’t believe this has been such a challenge to accomplish. However, I’m new to this so maybe I’m overlooking a simple solution.

This is what I’ve been working with, but it always chooses the true or ‘weekend’ path:

Any help is appreciated, Right now I have to manually change the selection of sub worklfows every weekend, and it’s kind of a PITA!

Thanks!

its a IF u just need one condition, not two (for ur use case)

2 Conditions would work with a Switch node but for a IF u need only one, if u remove the bottom one it should work fine

1 Like

Thanks, but I’m not sure I follow. Wouldn’t the IF would determine ‘if’ its a weekday (False) or weekend (True) and should route to the correct node? I have a similar time filter for ‘time of day’ in a different workflow, and it works great determining different times of day.

I’ll look into a switch option though!

you can enter 2 conditions but either you select AND or OR and then it takes care with AND that both conditions must match, with OR only one of them

for ur case only one condition is needed
This would go into the false Branch, bc its not true → only one condition

I see! I tried it out, and the switch looks like a winner!! Many thanks for the guidance! I’ll try it out over the weekend.

The switch worked great and routed the data to the correct node for the sub-workflow. Many thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.