Looping an action until text appears?

I'm trying to run an action to press a keyboard shortcut until text appears on the screen (using 'Wait For Text To Appear On Screen'). Could someone help me understand how I can repeat / loop the keyboard shortcut until the condition is true?

FWIW Ive tried an IF and ELSE statement but I can't see a way to use IF the condition is not met (text not on screen yet).

Thanks