| LIGHT | |
| Syntax | LIGHT number-or-list TRUE/FALSE |
| Explanation | The LIGHT command controls the
lights on a robotic device controlled by Logo. If the
first input is a number, the corresponding light is
affected. The first input can also be a list of numbers
corresponding to the lights on the robotic device. The
second input is TRUE to turn the light(s) on, and
FALSE to turn the light(s) off. For the number of lights a robot device supports, use the command ROBOTFACTS. |
| Examples | LIGHT [1 2] "TRUE (Lights 1 and 2 turn on) LIGHT [1 2] "FALSE (Lights 1 and 2 are turned off) |