AND and OR for multiple arguments