Using multiple 'and' and 'or' statements in a conditional

Your issue was that the boolean operators (and, or) need to be lower case. Your examples had the OR in upper case.

Full operators list.