ScriptUsage
Context for calling a script
Reference to a script and calling context.
See also this web site for general information about the Elekdra scripting concepts.
This could be inside a signal configuration.
- Using script with name hugo.
- Defining integer variable with identifier
address
to be initialized with value 42. Now the script may access the symboladdress
and will read the value 42.
Note: If the script reads this variable, all usages of this script must define the variable like here but may initialize with different values. Otherwise the script execution would fail with an unknown identifier.
<script> <name>hugo</name> <address>42</address> </script>
Tag Description <name>
Type: String
Cardinality: onceReference to the script implementation
Referrs to the<name>
tag of aScriptImplementation
<address>
Type: Integer
Cardinality: optional [0..1]Integer variable with name 'address'
This is a shortcut for definition of a variable of type integer with nameaddress
<int>
Type: NameIntValue[]
Cardinality: optional collection [0..N]Integer variables
Definitions and initialization of variablesExample
This is equivalent to using the <address> tag for value 42.<int> <name>address</name> <value>42</value> </int>
<string>
Type: NameStringValue[]
Cardinality: optional collection [0..N]String variables
Definitions and initialization of variables