bool test for and/or