XLS form- Repeat select_one question until "A" is selected

Hi @LN,
In your indefinite-repeat XLSForm example, what the code should be if the END condition is "a" is selected or age <50.