Complex Conditions
The robot can check several sensors at once. To do this, in the program, you need to link logical commands with bundles:
The and binding requires all the simple logical commands,
and a bunch of or only one of the listed ones.
We are already familiar with the logical link not .
For example 
wall_left or wall_right - this condition is true if there is a wall on at least one of the two specified sides.
wall_left and wall_top - this condition is true if the wall is both left and top at the same time.