Driving a step motor to control float switch

I removed the double = sign, and this has fixed the program not registering the float switch, but the stepper motor is not behaving as expected. It just goes back and forth between location 1 and 2 no matter the value for the float switch.