Repeating code until condition is true

Hi, I am working on a sketch that has two if loops.

No, it has two if STATEMENTS. If statements do not loop.