UPD: SOLVED—see the solution below.
I'm writing a plugin to control self-switches remotely from other events. It's already working pretty well.
Although, I'd like to add a debug message whether an event, which self-switch I want to change to, does not have that specific self-switch.
In other words:
1) Plugin Command in Event1 says 'ChangeSelfSwitch Event002 A' (it's shorter actually),
2) Event2 does not have this A self-switch
3) An alert with 'Event002 does not have A switch' appears.
Could you please advise what should I write in IF statement for the above to happen?
Thank you!
I'm writing a plugin to control self-switches remotely from other events. It's already working pretty well.
Although, I'd like to add a debug message whether an event, which self-switch I want to change to, does not have that specific self-switch.
In other words:
1) Plugin Command in Event1 says 'ChangeSelfSwitch Event002 A' (it's shorter actually),
2) Event2 does not have this A self-switch
3) An alert with 'Event002 does not have A switch' appears.
Could you please advise what should I write in IF statement for the above to happen?
Thank you!
