1) Give a description of the problem
I have a collection of devices I want to loop through in an expression to write an attribute to log or piston state
Ladies and Fine Fellows,
Is there a function for looping through a collection inside of an Expression?
Imagine I have a device variable into which I have added multiple (variable number) Light Switches.
I would like to set the Piston State reporting the status of each of the Light Switches within the collection.
Is there syntax for a loop statement, where by I can I grab each device in the collection and access it’s switch property/attribute by index of the loop?