So is there a way to make a press of an overlay do different actions depending on what property you have true/false?
I know it will need code so fire away.
So is there a way to make a press of an overlay do different actions depending on what property you have true/false?
I know it will need code so fire away.
First, set the overlay button to transmit on a channel. Then, add new block code to the overlay device. Make sure the block code is run when receiving a message from the same channel that the overlay button transmits on.
Now that you have your block code, just use an if statement. Make it like this:
if [Get Property[“(property name here”)
do (action 1)
else (action 2)
You will need to press the little options button on the if block, to add the else option.
If I misunderstood the question, or this doesn’t work, please let me know.
No just Use A Checker It Takes Less Memory
Oh yeah, I forgot about that device. That does definitely work and is more memory-efficient, unless you want the button to do something that requires block code.
I need it to check multiple things and transmit on different channels depending on the property that is true
So this does work for sure (tested)
Takes less memory but id need a different checker per property cluttering up my workspace
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.