While()
While(Ausdruck
)
EndWhile()
aufgerufen wird, und das so lange, bis
der Ausdruck nicht länger wahr ist. Danach wird die Ausführung nach
EndWhile()
fortgesetzt.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()
————————| 1.2 |————————| 1.4 |————————| 1.6 |————————
-= Info about application 'While' =-
[Synopsis]
Start a while loop
[Description]
Usage: While(<expr>)
Start a While Loop. Execution will return to this point when
EndWhile is called until expr is no longer true.
--- in Asterisk 1.2
+++ in Asterisk 1.4
@@ -1,7 +1,7 @@
-= Info about application 'While' =-
[Synopsis]
- Start A While Loop
+ Start a while loop
[Description]
Usage: While(<expr>)
--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -4,6 +4,5 @@
Start a while loop
[Description]
- Usage: While(<expr>)
- Start a While Loop. Execution will return to this point when
- EndWhile is called until expr is no longer true.
+ While(<expr>): Start a While Loop. Execution will return to this
+ point when EndWhile() is called until expr is no longer true.