Acme Packet (MOSC)

MOSC Banner

Single AND and multiple OR in match-value

edited Oct 24, 2019 12:58AM in Acme Packet (MOSC) 2 commentsAnswered ✓

Hello,

Does anybody know, what is the precedence in processing the logical operators in  match-value? In my case I need to define few conditions in  match-value of boolean type with single AND operator and many OR operators. The whole match-value must resolves to TRUE if:

Condition1 resolves to TRUE AND Condition2 == 1000

OR

Condition 1 resolves to TRUE AND Condition2 == 2000

OR

Condition 1 resolves to TRUE AND Condition2 == 3000

I prepared following expression. Not sure if it works correctly...

(Condition1) & (Condition2==1000) | (Condition2==2000) | (Condition2==3000)

What is the correct expression?

Regards,

Daureen

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center