Look here for the reason for these Logo posts.
Setup: Connect one motor to port A and one lamp to port B. Connect one switch to port 1 and another switch to port 2. Download and run this program:
if not switch1
if not switch2