I’ve tweaked the rule a little to account for 0 minutes.
the edit looks like this
if ( currentMinute > 0){
while ((m=m+1) <currentMinute){ // do stuff
DMXcommandM = DMXcommandM + "50,0,0,"
DMXcommandM2 = DMXcommandM2 + "50,0,0,"
}
DMXcommandM = DMXcommandM + Mcolour
DMXcommandM2 = DMXcommandM2 + M2colour
m=m+1
while ((m=m+1) <59){ // do stuff
DMXcommandM = DMXcommandM + ",0,0,0"
DMXcommandM2 = DMXcommandM2 + ",0,0,0"
}}
else {
DMXcommandM = "0"
}