Operators
12 min
each operator can also be prefixed by \<font color="#9900ef">not\</font> , which denotes its negation, e g \<font color="#9900ef">not =\</font> , \<font color="#9900ef">not smaller than\</font> , etc equality the rhs can be either a field or a value symbol example \<font color="#9900ef">=\</font> , \<font color="#9900ef">equal\</font> \[ \<font color="#fcb900">first name\</font> ] \<font color="#9900ef">equal\</font> \<font color="#3b9f0f">"john"\</font> comparison the rhs can be either a field or a value symbol example \<font color="#9900ef">smaller than\</font> , \<font color="#9900ef">\<\</font> \<font color="#fcb900">likely\</font> \<font color="#9900ef">\<\</font> \<font color="#3b9f0f">"usd" 5000\</font> \<font color="#9900ef">larger than\</font> , \<font color="#9900ef">\>\</font> \<font color="#fcb900">likely\</font> \<font color="#9900ef">larger than\</font> \<font color="#fcb900">worst\</font> \<font color="#9900ef">smaller than or equal\</font> , \<font color="#9900ef">\<=\</font> \<font color="#fcb900">likely\</font> \<font color="#9900ef">\<=\</font> \<font color="#3b9f0f">"eur" 5000\</font> \<font color="#9900ef">larger than or equal\</font> , \<font color="#9900ef">\>=\</font> \<font color="#fcb900">likely\</font> \<font color="#9900ef">\>=\</font> \<font color="#fcb900">best\</font> between the \<font color="#9900ef">between\</font> operator expects two arguments on the rhs docid\ zbj6atbbc9 s7nlsnwchh the arguments can be separated by either a comma , or semicolon ; either, or both, of the rhs arguments can be fields \<font color="#fcb900">x\</font> \<font color="#9900ef">between\</font> \<font color="#fcb900">y\</font> , \<font color="#fcb900">z\</font> is equivalent to \<font color="#fcb900">x\</font> \<font color="#9900ef">\>=\</font> \<font color="#fcb900">y\</font> \<font color="#9900ef">and\</font> \<font color="#fcb900">x\</font> \<font color="#9900ef">\<=\</font> \<font color="#fcb900">z\</font> \<font color="#fcb900">likely\</font> \<font color="#9900ef">between\</font> \<font color="#3b9f0f">"usd" 5000\</font> ; \<font color="#3b9f0f">"eur" 5000 \</font> \<font color="#fcb900">likely\</font> \<font color="#9900ef">between\</font> \<font color="#fcb900">worst\</font> , \<font color="#fcb900">best\</font> membership in the \<font color="#9900ef">in\</font> operator expects one or more arguments on the rhs it tests whether the lhs docid\ zbj6atbbc9 s7nlsnwchh argument is equal to any of the rhs arguments any of the rhs arguments can be fields \<font color="#fcb900">likely\</font> \<font color="#9900ef">in\</font> \<font color="#3b9f0f">"usd" 5000\</font> ; \<font color="#3b9f0f">"eur" 5000\</font> ; \<font color="#fcb900">worst\</font> ; \<font color="#fcb900">best\</font> contains the \<font color="#9900ef">contains\</font> operator tests whether the lhs argument contains the value on the rhs it is not case sensitive ( \<font color="#3b9f0f">"abc"\</font> is the same as \<font color="#3b9f0f">"abc"\</font> , \<font color="#3b9f0f">"abc"\</font> , \<font color="#3b9f0f">"abc"\</font> etc ) the rhs cannot be a field , only a value \<font color="#fcb900">name\</font> \<font color="#9900ef">contains\</font> \<font color="#3b9f0f">"inc"\</font> text the rhs cannot be a field, only a value symbol example \<font color="#9900ef">starts with\</font> \<font color="#fcb900">name\</font> \<font color="#9900ef">starts with\</font> \<font color="#3b9f0f">"john"\</font> \<font color="#9900ef">ends with\</font> \<font color="#fcb900">name\</font> \<font color="#9900ef">ends with\</font> \<font color="#3b9f0f">"doe"\</font> temporal the rhs can be either a field or a value \<font color="#9900ef">between\</font> for temporal fields is equivalent to \<font color="#fcb900">x\</font> \<font color="#9900ef">on or after\</font> \<font color="#fcb900">y\</font> \<font color="#9900ef">and\</font> \<font color="#fcb900">x\</font> \<font color="#9900ef">before or on\</font> \<font color="#fcb900">z\</font> symbol example \<font color="#9900ef">strictly before\</font> \[ \<font color="#fcb900">date created\</font> ] \<font color="#9900ef">strictly before\</font> \<font color="#2166ae">today\</font> \<font color="#9900ef">strictly after\</font> \[ \<font color="#fcb900">date created\</font> ] \<font color="#9900ef">strictly before\</font> \<font color="#2166ae">last month\</font> \<font color="#9900ef">before or on\</font> \[ \<font color="#fcb900">date created\</font> ] \<font color="#9900ef">strictly before\</font> \<font color="#2166ae">@\[next monday]\</font> \<font color="#9900ef">on or after\</font> \[ \<font color="#fcb900">date created\</font> ] \<font color="#9900ef">strictly before\</font> \<font color="#2166ae">@\[3 weeks ago]\</font> \<font color="#9900ef">between\</font> \[ \<font color="#fcb900">date created\</font> ] \<font color="#9900ef">between\</font> \<font color="#2166ae">@\[3 weeks ago]\</font> , \<font color="#2166ae">today\</font> emptiness the \<font color="#9900ef">empty\</font> operator does not have a rhs for example, the following query searches for all records that have an empty \<font color="#fcb900">description\</font> \<font color="#fcb900">description\</font> \<font color="#9900ef">empty\</font> it can also be used on links, in which case it means "has no linked records of that type" for example, if used in the accounts module, the following query searches for accounts that have no opportunities \<font color="#fcb900">opportunity\</font> \<font color="#9900ef">empty\</font>