We have a flow and we are struck on how its working.

kmannem
Tera Contributor

Attached the flow that we have, as an example we have applications A,B,C,D, E,F,G,H,I and the list goes on

 

on the first if, we are checking if it's A, ask for approval, approved -> create catalog task

on the second if, we are checking if it's B, ask for approval, approved -> create catalog task

on the third if, we are checking it its C, ask for approval, approved-> create catalog task

on the fourth if, we are checking if its not A or not B or not C -> create catalog task.

 

However, the first three conditions are working fine but the fourth if is not working fine, its evaluating to true even if the condition fails. Any ideas?

1 ACCEPTED SOLUTION

J Siva
Tera Sage

Hi @kmannem 

You can use if, else if, else if, else condition.

As per your current config, the last if condition runs on all the scenarios.

Just modify the conditional statements as

If(){

}Else if(){

}Else if(){

}Else{

 

Otherwise instead of using OR operator in the last if condition use AND operator.

(i.e) If not A AND if not B AND if not C.

It'll also work.

 

Hope it helps.

Regards,

Siva 

View solution in original post

1 REPLY 1

J Siva
Tera Sage

Hi @kmannem 

You can use if, else if, else if, else condition.

As per your current config, the last if condition runs on all the scenarios.

Just modify the conditional statements as

If(){

}Else if(){

}Else if(){

}Else{

 

Otherwise instead of using OR operator in the last if condition use AND operator.

(i.e) If not A AND if not B AND if not C.

It'll also work.

 

Hope it helps.

Regards,

Siva