Conditional loop
In computer programming, conditional loops or repetitive control structures are a way for computer programs to repeat one or more various steps depending on conditions set either by the programmer initially or real-time by the actual program.
https://en.wikipedia.org/wiki/Conditional_loop