1) Give a description of the problem
I’m trying to create a generic piston that can turn on a group of lights based on a group of motion sensors.
2) What is the expected behavior?
I’d like to use a single array of motion detectors, but currently I have to repeat that list to avoid getting an error that my piston has no triggers. Specifically wI’d like to get rid of the outermost “if” statement and just have the two nested foreach loops.