Skip to main content

Hi,

I am using the TestFilter with a composite test set up. However, the results are not what I am expecting. I believe it is something to do with my use of brackets and the AND and OR operator order.

I can't get the following composite test to work:

(1 OR 2 OR 3) AND (4 OR 5 OR 6)

Can anyone explain the order of precedence for OR and AND in the TestFilter composite test and whether the brackets are even recognised?

Thanks

Can you show a screen shot of your setup?

As it is, it looks like you're trying to test for an attribute having two different values simultaneously.


Hi David,

Screen shot is below.

I'm trying to find all instances where LINE is equal to 1 or 2 or 3 AND COLOUR = PINK or BLUE or GREEN.

Examples which I would like to find include;

LINE = 1 and COLOUR = BLUE

LINE = 3 and COLOUR = PINK,

etc

Thanks,


Sorry forgot the screen grab:


Sorry forgot the screen grab:

For BLUE, is the value supposed to be checked for NOT-BLUE? It looks like any value you're going to test for COLOUR is going to pass except for the actual BLUE value.

 


Sorry forgot the screen grab:

sorry the BLUE is not mean to be ticked - that is a mistake.

 

 


I just created a Tester with a similar setup and it worked as expected (FME 2017.0). Could you perhaps upload a small workspace here that demonstrates the issue?


Reply