Added "between" flow control and changed return values for and / or to integers