If else condition
Status: Closed · Asked by tommykhs on · 0 views
I refer to this workflow step 5 router of this workflow https://connect.pabbly.com/workflow/mapping/IjU3NjUwNTY5MDYzNDA0MzA1MjZjNTUzMzUxM2Ei_pc
I wonder whether router can implement if else condition.
Let me simplify the login as below. Currently, my router logic is
If Region=Taiwan Then action1
if Region=Singapore Then action2
if Region=Hong Kong or Shanghai or Beijing Then action3
I need to edit the condition, but pabbly loads til error when I try to edit the conditions with many criterion in case3 (Region=Hong Kong or Shanghai or Beijing), which I previously request to fix the loading problem but no luck.
My question now is, can I implement if else logic instead, then I don't need to have many conditions for case 3.
If Region=Taiwan Then action1
else if Region=Singapore Then action2
else
Action3
Thanks.
My question now is, can I implement if else logic instead, then I don't need to have many conditions for case 3.
Absolutely! You have the capability to employ the If-else logic within your router action step. To learn how to do this effectively, I highly recommend watching the following video lesson.
Absolutely! You have the capability to employ the If-else logic within your router action step. To learn how to do this effectively, I highly recommend watching the following video lesson.
I guess you have not read into detail my question. the video just simply illustrates if but not if, else.
Let me simplify again my question.
What I set in router now is:
If A, then action 1
If B, then action 2
If C, then action 3
If D, then action 4
If Not A & B & C & D, then action 5
It is stupid that no else logic for action 5, and there is a loading problem for me to edit the workflow with many conditions in pabbly. (It requests a lot of memory exceeding the chrome browser limit of a tab that I fail to edit the workflow)
And my question is can I do the following instead
If A, then action 1
else If B, then action 2
else If C, then action 3
else If D, then action 4
else then action 5
Thanks.
Hey @tommykhs
You can experiment with the If-else condition by setting it up initially within the Spreadsheet Formula. Afterward, based on the resulting response, you can efficiently manage different actions by utilizing separate routes in the Router. This approach allows you to smoothly execute distinct steps according to the condition's outcome.
Hey @tommykhsYou can experiment with the If-else condition by setting it up initially within the Spreadsheet Formula. Afterward, based on the resulting response, you can efficiently manage different actions by utilizing separate routes in the Router. This approach allows you to smoothly execute distinct steps according to the condition's outcome.
Sorry I don't get where can I set forumla in pabbly like spreadsheet? Do you get my question? I just want to know if there's no such if else feature, I won't waste time to study how to achieve that.
Hey @tommykhs
Can you please confirm if you are referring to a formula of this nature?
Hi @Supreme. I have the same question and I'll add to the discussion: In a router I've just created, I have two known possible conditions A and B. For each condition an action is defined. And there are also a number of other possible conditions for which a default action needs to happen. Example:
IF field contains A THEN execute action A
IF field contains B THEN execute action B
ELSE execute action N
Hoping this makes it totally clear what I and @tommykhs need to solve - right, Tommy?
Have you tried the following -
IF field contains A THEN execute action A

IF field contains B THEN execute action B

ELSE execute action N

Yes, that's how I'm doing it now, and it's too bad that the router processes all conditions instead of working in an if-then-else manner.
Yes, that's how I'm doing it now, and it's too bad that the router processes all conditions instead of working in an if-then-else manner.
Could you please record a short video on the same condition, so that we can look into it and guide you?
Could you please record a short video on the same condition, so that we can look into it and guide you?
Thanks - and not necessary. I understand how it works and it's running correctly. And it would simplify if the if-then-else way of branching was implemented - less conditions to add.