changing the operator of the if condition to 'not equal' (<>)