You can use the following method to exit the if block with break. The following example assumes that the form has two edit fields. repeat ... until true;
replaces the usual begin ... end;
if ... then repeat Edit1.Text := 'test'; if someCondition then break; Edit2.Text := 'test'; until true;
Edit: Clarification, the solution simply assumes that the question is a brain teaser. This is not my recommended way to handle the situation, and I will never use this in my code.
source share