The following operators are available:
- equal to (eq);
- not equal to (ne);
Prototypes
boolean <-- query1 eq query2
boolean <-- query1 ne query2
The operators eq and ne return the result of the comparison of query1 and query2. Note that:
- all atomic values are compared as strings (to force numeric comparison, use the == and != operators);
- in the comparison of elements, all hidden attributes are ignored.
Examples
TRUE eq "TRUE"; TRUE4 eq 4.0; FALSE4.0 eq "4.0"; TRUE(first DATE within file $myfile) eq
%<DATE>16 July 1991</DATE>%
;TRUE(first DATE within file $myfile) eq
%<DATE TYPE="FULL">16 July 1991</DATE>%
;FALSEtext(first DATE within file $myfile) eq
"16 July 1991"
;TRUE