If the routines truly are different (ie they differ in ways that can’t be controlled just by using a conditions file (such as one routine playing a sound, while another shows an image), then you could control the order of the loops like this:
If the routines truly are different (ie they differ in ways that can’t be controlled just by using a conditions file (such as one routine playing a sound, while another shows an image), then you could control the order of the loops like this: