Gotolabel inside a loop and inside a condition

Simple question, if I got this code running:
times (5)
“some code that can put error = 1”
if (error == 1)
gotolabel loop_end
end
label loop_end
end

Imagine the error variable is put to 1, in that case the execution will jump to the label “loop_end” and then find a “end” command, this will be treated as the “if”'s end or as the “times”'s end??

This one.

But a better way to leave a loop is to use BREAK, see https://ui.vision/rpa/docs/selenium-ide/times#break

Perfect, that’s exactly what I was looking for.

Thank you