I believe the command you are looking for is last
In reply to Re: Exiting a loop trickery by Koosemose in thread Exiting a loop trickery by GaijinPunch