Apama 10.3.1 | Apama Documentation | Developing Apama Applications | EPL Reference | Events and Event Listeners | Event expressions | Event expression operator precedence
 
Event expression operator precedence
The following table lists the event expression operators in order by their precedence, from lowest to highest. See Expression operator precedence for a corresponding table of primary and bitwise expression operator precedence.
Operation
Operator
Precedence
Followed-by
->
1
Logical union
or
2
Logical exclusive or
xor
3
Logical intersection
and
4
All
all
5
Logical negation
not
6
For clarity, it is strongly recommended to use brackets in event expressions. This makes it very easy to understand what an expression means. Do not use un-bracketed expressions, except where trivial.
For example, the following expression:
on all A()or B() and not C() -> D()
is equivalent to this expression, which is much easier to understand:
on (
(all A() )
or
(B() and (not C() ))
) -> D()

Copyright © 2013-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.