- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2025 06:25 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2025 08:06 AM - edited 03-14-2025 08:11 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2025 08:06 AM - edited 03-14-2025 08:11 AM
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