If I do an IF statement in Rule Machine as follows:

IF A=1

AND

B=2

OR

C= 3

Will Rule Machine interpret that as IF (A=1 and B=2) OR C=3

or will it interpret this as IF A=1 AND (B=2 or C=3) ?

If I do an IF statement in Rule Machine as follows:

IF A=1

AND

B=2

OR

C= 3

Will Rule Machine interpret that as IF (A=1 and B=2) OR C=3

or will it interpret this as IF A=1 AND (B=2 or C=3) ?

1 Like

This has been discussed before, but it may be hard for me to find the topic again.... My suggestion, and I think it was from others as well, would be to make use of the parenthesis you can include in your rule to make it more explicit about how the logic should be handled, rather than leaving it open to interpretation (by the user I mean), needing to know for sure how the system will interpret the logic. So if you want A and (B or C), then I would setup the parenthesis this way in your rule or vice versa.

3 Likes

3 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.