ForEach command
The ForEach loop command is for going through on the elements and items of an array which you can specify with the Array ID of it. It is widely used as a Voicemail functionality when you would like to listen to all of your new or old messages and for example you would like to reach who was the sender of the message and when did it arrived.
Parameters
Parameter name | Example value | Description | Mandatory |
Source | sampleArray | This is the ID of an array which you want to iterate in it. | yes |
OzML example
The following OzML example iterates through the 'sampleArray' array, and read out all of its items with the Speak command.
<?xml version="1.0"?> <Response> <ForEach source='sampleArray'> <Speak>$item</Speak> </ForEach> </Response>
More information
- Commande AttendedTransfer
- Commande BlindTransfer
- Commande d'appel
- Commande ForwardCall
- Commande ListCallHistory
- Commande Hangup
- Commande Hold
- Commande ListActiveCalls
- Commande ListExtensions
- Commande ListExtensionTypes
- Commande Play
- Commande Record
- Commande Request
- Commande SendDTMF
- Speak
- Commande Unhold
- Commande ReceiveMessage
- Commande SendEmail
- Commande SendMessage
- Commande SendSMS
- Commande Array
- Commande Beep
- Commande Delay
- Commande DeleteFile
- Commande ForEach
- Commande GoTo
- Commande MoveFile
- Commande Reject
- Commande Route
- Commande SendAlarmNotification
- Commande SendMsg
- Commande UserInput
- Commande Var
- Commande WaitForMsg
- Commande CallSetup
- Commande Exit
- ListAddressbokkContacts
- Commande ListAddressbookNames
- ReceiveAlarmNotification