Variable as device attribute


1) Give a description of the problem
Trying to use a variable (Source_Variable) as device attribute. My speakers have 6 inputs (source0 - source5) and I am trying to determine which source is active. Eventually I want to use a loop and use $index to build the Source_Variable to determine which of the 6 inputs is active. That would be [device :source($index)] within the device statement, such as [Speakers_On.concat(source, $index)] or something similar to yield [device :source0] through [device :source5].
My Workshop speaker is on with source1 active (for piston testing).

2) What is the expected behaviour?
Use a loop to index through my speaker inputs source0 through source5
3) What is happening/not happening?
I have assigned “source1” to Source_Variable for testing. Expression statement not recognizing [device :Source_Variable] that will be built within a loop using $index.

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach logs after turning logging level to Full