CoRE - Variables 101

How do you get the bulb level?

First you will need to save the bulb ‘level’ into a new variable. In this example, the variable is a global variable called @lgtLevel. This simple example prints out the current value of the bulb.