Loving Lemur. I have a basic question and as I am not a expert coder am stuck.
My wish is to click a PAD button and have it turn on a series LEDS. With each push of the button the next LED in line would turn ON and the other LED would remain ON.
Basically counting how many times the Pad button has been pushed.
Also a simple reset would be nice.
I have played with Stretch, firstof etc to no joy.
If NumberofPushesOfButton = 0 then;
setattribute (myLED,'value',{0,0,0,0,0});
else;
If NumberofPushesOfButton = 1 then;
setattribute (myLED,'value',{1,0,0,0,0});
else;
If NumberofPushesOfButton = 2 then;
setattribute (myLED,'value',{1,1,0,0,0});
else;
If NumberofPushesOfButton = 3 then;
setattribute (myLED,'value',{1,1,1,0,0});
else;
If NumberofPushesOfButton = 4 then;
setattribute (myLED,'value',{1,1,1,1,0});
else;
If NumberofPushesOfButton = 5 then;
setattribute (myLED,'value',{1,1,1,1,1});