Hi @bensmir.hbs
See this post which has several examples of the strange but effective way you can handle more complex Boolean logic. If you need and example for your case, put it in the form of the logic you would normally follow for a different programming language and I can probably work it out for you.
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz