Can I use variables for "toggle, On Off" state?

Hey Andy,

I’m wondering if i can use a text variable in the state field for InCh/ToMix/On?

Thanks!

Ade

Yup.
It’s not obvious because companion hasn’t officially blessed it, but if you copy paste the variable into the dropdown it should work.
Write back if it doesn’t and I’ll check into it. It definitely does for other dropdowns like channel number (as you did in your example) so it should work.

1 Like

Likely though the values might have to be 1 for on and 0 for off.

Yep, “1” for “On” and “0” for “Off” work. This is great and should save me a bunch of programming :+1: :+1:

1 Like