Comparing one list to another fails
- LIST1 = ("cat", "dog", "bird", "fish");
- LIST2 = ("cat", "dog");
- for each element in LIST1
- {
- if (element not in LIST2)
- {
- // do something
- }
-
- }
Gives an error "Left expression should be a field name for 'not in' operator". REALLY?
The List Operator not in checks whether a value is not within a set of values
Syntax
<expression1> not in <expression2> |
where, the right expression should be of type "List"
John M. Whitney