3.9.1. Filter expressions

The filter expression language supports the following constants, operators, and functions. It also allows for referencing data element attributes by putting the attribute name in square brackets [attribute] and to change evaluation order by putting expression parts in regular round brackets (…​).

TODO: operator precedence TODO: regular expression match and replace

Constants
true

logical true

false

logical false

pi

3.14159…​

deg_to_rad

0.01745…​ (pi/180)

rad_to_deg

57.295…​ (180/pi)

Operators
+
-
*
/
%
and, &&
or, ||
not, !
=, eq, is
!=, <>, neq
<, lt
<=, le
>, gt
>=, ge

…​

Functions
sin(x)

Sinus

cos(x)

Cosinus

tan(x)

Tangens

atan(x)

Arc Tangens

exp(x)

ex

log(x)

natural logarithm of x

pow(x,y=

xy

abs(x)

positive absolute value of x

min(x,y)

minimum value

max(x,y)

maximum value

length(str)

string length