I'm tring to make a loop for verification on the status of a api, i need the loop to stop wen the variable status is completed or is requires_action. been on this for a while now and can't find the corect way to write

I'm tring to make a loop for verification on the status of a api, i need the loop to stop wen the variable status is completed or is requires_action. been on this for a while now and can't find the corect way to write
Hey,
Could you try this:
@Anonymous(equals(variables('Status'), 'completed'), equals(variables('Status'), 'required_action'))
Cheers