Add "any" modifier to "of"
Status: Pre-Alpha
Brought to you by:
ghhale
The "any" modifier allows triggering on a list of events. Example:
condition anyEvent is (any of event1,event2,event3) within 5000;
Of course, this is the same as (event1 or event2 or event3). But combining this with the "of" operator gives us:
condition any2Events is (any 2 of event1,event2,event3) within 5000;
Which would allow us to trigger on any 2 events in the list. This could be done with (event1 and event2) or (event2 and event3) or (event1 and event3), but that's much more complex and non-intuitive. Imagine what "any 5 of" would take...