Forum Discussion
RonLinder-4c1a3
3 years agoCommunity Member
Change State based on variable
Is there a way to change the state based on variable rather than a static value. For example I have 6 states named: normal, 1, 2, 3, 4, 5
I have a variable named StateNum that changes to: 1,2,3,4,5
I want in one trigger to set the state to whatever the StateNum value is. So change state to 1 when StateNum = 1, etc.
I can do so with 5 diff triggers but would be cool if we can do so via one trigger (maybe via Jscript).
1 Reply
Sort By