Tutorial

Each light has it's own number. To turn on a light, type 'lights' followed by the number or numbers you want to light up! Make sure you leave a space between 'lights' and your numbers! Once you're happy, hit run!

Have a go!

If you type several numbers on the same line, the numbers will light up together. For example:

lights 0 1 2

You can also control which numbers light up depending on the environment using 'if'. For example, if we wanted the number 2 to only light up if it was dark you could do:

if dark
   lights 2
endif

Make sure you mark the end of an if behaviour with the line 'endif'.

You can change the environment by clicking on the environment buttons.

Environment

Your Code

1 Line 1 content