Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: Tim MeagherThe problem is in the "or" logic.
There will never be anything which
won't match that criteria.
Just looking at the first piece of the or statement:
'ANumber_Prefix' != "23" or 'ANumber_Prefix' != "28"
Consider the case of an ANumber_Prefix of "23", then this will effectively evaluate to:
"23" != 23 or "23 != "28"
Which in turn evaluates to:
Which evaluates to true.
For an ANumber_Prefix of 20, then this would evaluate to:
"20" != 23 or "23 != "28"
Which in turn evaluates to:
Which evaluates to true.
Do you want to use "and" in place of "or"?
Which would mean that the data would only be output where the ANumber_Prefix is not any of: 23, 28, 77, 75 or 71?
Tim