bucle rojo foreach

MQTT_Array = ["sonoff/sonoff082/STATUS8","sonoff/sonoff084/SENSOR","sonoff/sonoff085/STATUS8","sonoff/sonoff086/STATUS8","sonoff/sonoff087/STATUS8","sonoff/sonoff089/SENSOR","sonoff/sonoff091/STATUS8","sonoff/sonoff092/SENSOR"]


for ("every element in MQTT_Array")
{
    var value = global.get('array_element.Value'); 
    if (value > 5) 
    {
        return msg;
    }
    else
    {
        return null;
    }
}
David Kenny