Menu

#18 Add "any" modifier to "of"

open
nobody
5
2008-05-07
2008-05-07
Gary Hale
No

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...

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.