Var command
The Var is an implicit type variable. In this case the compiler determines the type of the variable.
<Var> command example usage:
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 | Value | Description | Mandatory |
ID | string value, e.g. exampleID |
This ID will clearly identify the var type variable and you can reach it for other commands with this ID. | Yes |
OzML simple example:
If you would like to make an implicit type variable you need to use the <Var></Var> command and you must add an ID for it. For example, the ID of the example is „exampleID” and „Hello” is the content of it. If you would like the use this exampleID var simply add the ID of it to an other command. If you use the <Speak></Speak> command, the „Hello” line will be said by the speak engine.<?xml version="1.0"?> <Response> <var id="exampleID">Hello</var> <speak>$exampleID</speak> </Response>MoveFile command is used in OzML responses to these Api Extension Control notifications:
Call, Hangup, SendSMS, Play, Speak, BlindTransfer, Reject
More information
- SQL command
- OzML Array command
- OzML BlindTransfer HTTP command to Ozeki Phone System
- OzML Call HTTP command to Ozeki Phone System
- OzML Delay HTTP command to Ozeki Phone System
- OzML DeleteFile Command
- OzML ForEach command
- OzML GoTo HTTP command to Ozeki Phone System
- OzML Hangup HTTP command to Ozeki Phone System
- OzML MoveFile command
- OzML Play HTTP command to Ozeki Phone System
- OzML ReceiveAlarmNotification
- OzML Record HTTP command to Ozeki Phone System
- OzML Reject HTTP command to Ozeki Phone System
- OzML SendAlarmNotification
- OzML SendEmail HTTP command to Ozeki Phone System
- OzML SendSMS HTTP command to Ozeki Phone System
- OzML Speak HTTP command to Ozeki Phone System
- OzML Userinput HTTP command to Ozeki Phone System
- OzML Var command