See this post. The first answer pretty much does exactly what you want - you can impose your own conditions on certain variables and do other things with other variables in the same event.
See this post. The first answer pretty much does exactly what you want - you can impose your own conditions on certain variables and do other things with other variables in the same event.