if (personDetected()) - break(); + brake();
for (;;) { if (detect_obstacle()) break; move_forward(); }