repeat statementList [(lastly|then|else) statementList] end repeat
repeat
lastly
then
else
end
The lastly keyword is part of the repeat control structure. See the description for repeat for details.