XPath Operators

1 minute to read Download PDF Edit

The following operators can be used in XPath query constraints:

OperatorDescriptionExampleReturn value
Addition6 + 410
-Subtraction6 - 42
*Multiplication6 * 424
divDivision8 div 42
=Equal toprice = 9.80true if price is 9.80
false if price is 9.90
!=Not equal toprice != 9.80true if price is 9.90
false if price is 9.80
<Less thanprice < 9.80true if price is 9.70
false if price is 9.80
<=Less than or equal toprice <= 9.80true if price is 9.80
false if price is 9.90
>Greater thanprice > 9.80true if price is 9.90
false if price is 9.80
>=Greater than or equal toprice >= 9.80true if price is 9.80
false if price is 9.70
orOrprice = 9.80 or price = 9.70true if price is 9.80
false if price is 9.60
andAndprice = 9.80 and amount = 1true if price is 9.80 and amount is 1
false if price is 9.70 and amount is 1
false if price is 9.80 and amount is 2
false if price is 9.70 and amount is 2

Copyright © Mendix. All rights reserved. | Mendix.com | Terms of Use | Privacy Policy