A condition: an expression in rule text that evaluates to a Bool (two-valued, never null).
Constructors
Spec.CondExpr.ever (s : Selector) : CondExpr
ever s: s picks at least one event
Spec.CondExpr.never (s : Selector) : CondExpr
never s: s picks none
Spec.CondExpr.qty (q : Quantity) (s : Selector) : CondExpr
at most n s, between n and m s, ...: s picks that many
Spec.CondExpr.isType (s : Selector) (t : String) : CondExpr
last of s is EventType (false if there is no such event)
Spec.CondExpr.cmp (op : CmpOp) (a b : ValueExpr) : CondExpr
a = b, a != b, a < b, ...; false if either side is null
Spec.CondExpr.isNull (a : ValueExpr) : CondExpr
value is null (is not null is not (value is null))
Spec.CondExpr.and (a b : CondExpr) : CondExpr
a and b
Spec.CondExpr.or (a b : CondExpr) : CondExpr
a or b
Spec.CondExpr.not (a : CondExpr) : CondExpr
not a