Loop with condition

see reply #21

Do you want it to turn off?