In encoded queries, what does "EQ" signify?

Stephen W_
Giga Guru

In encoded queries, what doe "EQ" signify?

I see it in encoded query style conditions, but I don't see a requirement that would explain it's use.

 

For example,

drop_off=false^stage=draft^EQ

 

Thanks,

-Stephen

1 ACCEPTED SOLUTION

Jace Benson
Mega Sage

I haven't seen it documented but I believe it's for End Query


View solution in original post

9 REPLIES 9

I'll mark your answer as helpful.   I'm pretty sure you're right.   But I'd like to leave the question open in-case someone later can answer how "^EQ" actually affects the query execution.



Thanks,   Stephen


rathikaramamurt
Giga Expert

Hi Stephen,



I would like to add my comments in this that EQ is simply an operator an it stands for Equal to, i.e., ^EQ, while ^NQ stands for Not Equal to.



For more details, refer below link:


Operators Available for Filters and Queries - ServiceNow Wiki



Thanks,


Rathika.


This is a fairly old question, and since then I've come to use at least one of these regularly.     However, "NQ" is usually used as a way of combining the results of two queries, and while I don't think I've ever used "EQ",   I've only ever seen it at the end of a query.



That's interesting Rathika.   I've never seen these used as an equality operator in an actual query...


I may test that to make sure it's not a typo.   (if it isn't; what's the point of having what the wiki would lead one to believe are two functionally identical operators?)



Thanks,


-Stephen


Rathika, thanks for the wiki link.  Very useful.  However the wiki link appears to support the response from @jacebenson that ^EQ is end query. 

^NQ = new query

^EQ  = isn't defined, but shown in two examples without an explanation for the ^EQ portion:

             stateCHANGESFROM4^EQ     CHANGESFROM

             stateCHANGESTO4^EQ          CHANGESTO

  Would seem to support the "end query" definition

 

 

 

Johnny17
Kilo Expert

^NQ stands for "new query" 

not "not equal to"

 

See the "OR filter" in the documentation you've outlined.

https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/use/common-ui-elements/reference...