Or cheat:
Code:

"Loop started"+@CRLF
$=Execute("

For $i = 1 To 10
'$$$i is now '+$i+@@CRLF
If $i=5 Exit For EndIf
Next

")
"Loop completed"+@CRLF