Code: Select all
commandArray = {}
print ("we're going to check the state of the button");
if (devicechanged['R1B2s'] == 'On') then
print("captured change to On");
end
print("change tested");
return commandArray
which i guess could maybe be possible but i firgured the whole reason the event triggered in the first place was because there was a changed device.attempt to index global 'devicechanged' (a nil value)
I think i recall having an issue with devicechanged before, and it doesnt show up in the intellisense.
is this object still valid? what am i missing?