Hey folks, I’m trying to link the Active/Inactive toggle from one node to the index of a switch node in another. Basically, I’d like it to be, unless it’s value 2, I’d like it to be inactive. Similarly, I’d like it to be able to compare multiples switch nodes for this value. I’m getting syntax errors and I don’t understand why. Could I get some direction?
Here’s what I have:
if op('panel1_Switch').par.index == 2 else Off
Similarly, what I’d expect for multiple would be:
(if op('panel1_Switch').par.index == 2) || (op('panel2_Switch2').par.index == 2) || (op('panel1_Switch').par.index == 2) else Off
Any ideas? I feel kinda silly being stuck on something so simple!