Var command
The Var is an implicit type variable, means the compiler determines the variable's type. You can use this command to reach the content of it and add to an other command as a parameter value. For example one of your Var types contains the path of a file and you would like to add this to the MoveFile command, you can do this easily with this functionality.
Parameters
Parameter name | Example value | Description | Mandatory |
ID | exampleID | This ID will clearly identify the var type variable and you can reach it from other commands using this ID. | yes |
Value | Hello | The content of the variable. | yes |
OzML example
By using this example you can store some content into a variable with the Var command. The ID attribute will specify the unique ID to the variable with that you can access it from other commands. This script uses the Speak command to demonstrate it. This will read out the text that was stored in the variable.
<?xml version="1.0"?> <Response> <var id="exampleID">Hello</var> <speak>$exampleID</speak> </Response>
More information
- AttendedTransfer command
- BlindTransfer command
- Call command
- ForwardCall command
- ListCallHistory command
- Hangup command
- Hold command
- ListActiveCalls command
- ListExtensions command
- ListExtensionTypes command
- Play command
- Record command
- Request command
- SendDTMF command
- Speak
- Unhold command
- ReceiveMessage command
- SendEmail command
- SendMessage command
- SendSMS command
- Array command
- Beep command
- Delay command
- DeleteFile command
- ForEach command
- GoTo command
- MoveFile command
- Reject command
- Route command
- SendAlarmNotification command
- SendMsg command
- UserInput command
- Var command
- WaitForMsg command
- CallSetup command
- Exit command
- ListAddressbokkContacts
- ListAddressbookNames command
- ReceiveAlarmNotification