Select
Drag a inside the If/Then block.
This will tell the robot to perform a task if it scans something in front of it
Select
Drag a inside the Not block.
Change 50 mm to 260 mm.
The robot will now follow the upcoming blocks if it does not see a wall in front of it.