B.34. EndWhile()

Ends a while loop.
Returns to the previously called While() statement. For a complete description of while loops in Asterisk, see Section B.139, “While().
exten => 123,1,Answer()
exten => 123,n,Set(i=1)
exten => 123,n,While($[${i} < 5])
exten => 123,n,SayNumber(${i})
exten => 123,n,Set(i=$[${i} + 1])
exten => 123,n,EndWhile()
exten => 123,n,Hangup()


Internal help for this application in Asterisk 1.4:
  -= Info about application 'EndWhile' =- 

End a while loop

Usage:  EndWhile()
Return to the previous called While
diff output to internal help in Asterisk 1.2:
< End a while loop
> End A While Loop