conditional logic using numbers greater than or less than