REPEAT
SET s = CONCAT(s, 'i=', i, ' | ');
SET i = i + 1;
UNTIL i = 4
END REPEAT;
This translates to loop indefinitely until the boolean condition is met
As with the WHILE Loop you need to change the boolean condition variable in the loop