The CreatorCon Call for Content is officially open! Get started here.

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 

3 REPLIES 3

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
Giga 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
Mega 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