Page History
...
Find a number of syntax examples for assignment of constant values and expressions.
- The Input representation of the examples corresponds to what a user types in the GUI.
- The Output representation of the examples corresponds to what is visible from the log output, e.g. using an
echo
command in a Shell Job. - The JSON representation is visible when using the "Show JSON" operation from an object's action menu.
Examples for Constant Values
...
Use with single quotes
Input var = 'some value'
Output some value
JSON "var": "'some value'"
Use with double quotes
Input var = "some value"
Output some value
JSON "var": "\"some value\""
Use with single quoted values
Input var = 'some \'quoted\' value'
Output some 'quoted' value
JSON "var": "'some \\'quoted\\' value'"
Use with double quoted values
Input var = "some \"quoted\" value"
Output some "quoted" value
JSON "var": "\"some \\\"quoted\\\" value\""
Use with double quoted and single quoted values
Input var = "some 'quoted' value"
Output some 'quoted' value
JSON "var": "\"some 'quoted' value\""
Use with
$
character from single quoted valuesInput var = 'some $dollar value'
Output some $dollar value
JSON "var": "'some $dollar value'"
Use with
$
character from double quoted valuesInput var = "some \$dollar value"
Output some $dollar value
JSON "var": "\"some \\$dollar value\""
...
Use without quotes
Assumevar2
to hold the value:some value
Input var = $var2
Output some value
JSON "var": "$var"
Use with double quotes
Assumevar2
to hold the value:some value
Input var = "$var2"
Output some value
JSON "var": "\"$var\""
Use with constant values from double quoted values
Assumevar2
to hold the value:second value
Input var = "first value, $var2"
Output first value, second value
JSON "var": "\"first value, $var2\""
Use with string concatenation from double quoted values
Assumevar2
to hold the value:second value
Input var = "${var2}first value"
Output second valuefirst value
JSON "var": "\"${var2}first value\""
Use with constant values and single quoted values
Assumevar2
to hold the value:second value
Input var = "first, '$var2'"
Output first, 'second value'
JSON "var": "\"first, '$var'\""
...