Differences

This shows you the differences between two versions of the page.

Link to this comparison view

user_variables [2016/09/22 02:36] (current)
Line 1: Line 1:
 +===== User Variables =====
 +
 +//​TestOptimal//​ supports user defined variables. Each variable is given a name and the name must not be the same as any of the [[System Variables|system var]].
 +
 +----
 +==== Create User Variable ====
 +User variables are created automatically by using it. For example the following mScript will create the variable if it does not exist yet and set its value:
 +
 +    <action code="​$setVar('​myVar',​ '​xyz'​)"/>​
 +
 +----
 +==== Retrieving User Variables ====
 +You can retrieve the value for a variable with "​$getVar()"​ method:
 +
 +    <log msg="​myVar is: $getVar('​myVar'​)."/>​
 +
 +User variables can be retrieved using a token syntax as well:
 +
 +    <log msg="​myVar is: [myVar]."/>​
 +
 +Please be aware that there is a little bit overhead in using the token syntax.
 +
  
Print/export
QR Code
QR Code user_variables (generated for current page)