It is impossible for both statements to evaluate as true but it is quite likely that neither statement will evaluate as true. What can I do in that case?
Answering my own question. Do something that does nothing (ac should already be off). Also the if test arguments were not quite right. I’m loving the template editor for this sort of thing.
Could you mark this as solved? Just click on the option in your second post. That would help people like me who are searching for people that still need help with a problem. Thanks!
BTW, this may not always be possible (depends on the situation, but in this case I think it is), but you could precede that service step with a condition that evaluates to false if both if’s are false (or, to put that another way, evaluates to true only if one or the other if statement is true.) In this case you would then only need one if statement, and no “dummy” statement. So something like this:
Thanks Phil. I’ve decided to change the service call to the shell script to setting an input select associated with the remotte control for this device instead. That way the status is also reflected there. So in this case I’ll stick with the if statements but will keep your suggestion in mind for future tasks.