EQL provides two negation operators.

As the EBNF grammar shows, EQL provides two negation operators:

An example of the not operator is:

collection()/record[not(Recordtype = "author")]

An example of the != operator is:

collection()/record[Recordtype != "author"]

Although both operators look like they work the same, each in fact may return a different record set. Using the above two sample queries:

The small (but noticeable) difference in the result sets may be a useful distinction for your application.

Copyright © Legal Notices