LIGHT?
Syntax LIGHT? number-or-list
(LIGHT?)
 
Explanation Use the LIGHT? command to check whether the light(s) given as a number or list of numbers on a robotic device is on or off. If the LIGHT? command is used without any inputs, the result is TRUE if any light is currently on.

Use the LIGHT command to turn lights on or 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
Result. TRUE

TopIndex