Building with filter code

Regular Applets have a very straightforward logic to them - when a trigger fires for a new event, an action is always run. But what if you want to have more say in when or how exactly this happens?...