If's & else if's without void loop

Okay I see.thanks for the answer :smile: My idea was that the robot would do a certain maneuver when only the left sensor detects an object. When only the right sensor detects an object it would do a different maneuver. And when both detect an object it would do an even different maneuver. I'd want it to execute the maneuver after the sensors detected the object(s). And then come back to the first place where an other object would be, etc. It would do it 3 times.