Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Flow Designer - IF Flow Logic

StefanSrba
Tera Contributor

Hi!

How can I know is these conditions are correctly grouped since I cannot add parenthesis?

StefanSrba_0-1759927404789.png


This needs to be (con1 OR con2 OR con3)AND(LEVEL3s) but I have no way of checking if that's how this IF will be built.

On the other hand I don't see an option for Level3 NOT IN ('level3s','level3s')

 

Kinda regards,

Stefan 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@StefanSrba 

I will suggest to use a flow variable and use "Set Flow Variables" flow logic to set the flow variable

Then use that flow variable in IF logic

💡 If my response helped, please mark it as correct ✔️ and close the thread 🔒 — this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@StefanSrba 

I will suggest to use a flow variable and use "Set Flow Variables" flow logic to set the flow variable

Then use that flow variable in IF logic

💡 If my response helped, please mark it as correct ✔️ and close the thread 🔒 — this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

M Iftikhar
Tera Sage

Hi @StefanSrba,

 

You can check this by switching to the diagramming view and select the if block. In the Flow Logic Properties you can check this condition grouping.

MIftikhar_0-1759930891968.png

 

For further guidance please refer to this product documentation: If flow logic

 

If my response helped, please mark it as the accepted solution so others can benefit as well.

 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

Bhuvan
Giga Patron

@StefanSrba 

 

Flow logic does not work like that. If any of the OR condition matches, it will evaluate to true.

Bhuvan_0-1759933037750.png

I would recommend using 2 IF Flow logic, first check Flow Logic of OR conditions, once it evaluates to true, check another IF Flow Logic for AND conditions and then design your actions. Test this approach in development environment and confirm it is working fine before migrating to other environments.

 

If this helped to answer your query, please mark it helpful & accept the solution. 

 

Thanks,

Bhuvan

@StefanSrba 

 

Did you get a chance to review this as I believe the information provided should answer your question.

 

As per community guidelines, you can accept more than one answer as accepted solution. If my response helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan