If statement working for int nums