Added "and/or comparison", and "if, else if, else" in one function