Branches based on variable

michael_smith
Tera Expert

Hello,

 

I am attempting to build a flow that branches based on a variable value. This yes/no variable is set to none as a default value as the variable is unknown at the beginning of the flow. 

In step 9, the person working the ticket needs to pick yes or no on a yes/no variable. If No, then branch on step 10 should execute, if Yes, then branch on step 15 should execute. No matter which option is chose the branch on step 10 executes every time. The only way I've gotten this to work properly is if I set the variable during the ticket creation. Any thoughts on how to make this work the way I want it to?

 

michael_smith_0-1729189170518.png

 

1 ACCEPTED SOLUTION

michael_smith
Tera Expert

It seems like I have resolved this myself. I added another get catalog variables action between steps 9 & 10. Populated my If condition with the variable from the new action and the flow now works as intended.

View solution in original post

4 REPLIES 4

Akash4
Kilo Sage
Kilo Sage

Hi Michael,

You can add Wait for Condition step between 9 and 10 as follows:

Questions > Yes/No Variable Name = Yes OR =No 

The flow waits until the Yes/No variable is set to either Yes or No > then it goes to next triggering conditions of IF and ELSE steps

 

Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.

I gave that a shot and it still just ignores my If conditions and executes the If branch anyways.

The If condition to execute that branch is for the Variable to be set to No, when I set the variable to Yes the branch executes anyways instead of going to Else branch.

 

michael_smith_0-1729193741179.png

 

I believe I set this up as you described:

 

michael_smith_1-1729193806005.png

 

michael_smith
Tera Expert

It seems like I have resolved this myself. I added another get catalog variables action between steps 9 & 10. Populated my If condition with the variable from the new action and the flow now works as intended.