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