Page History
...
Expression |
|
---|---|
JSON | "var": "some value" |
Explanation | Unquoted values that are added to the JOC Cockpit GUI are considered strings if they do not start with a digit, a Boolean value or the name of a built-in function. |
Expression |
|
---|---|
JSON | "var": "'some value'" |
Explanation | Single quoted values are considered string constants. |
Expression |
|
---|---|
JSON | "var": "\"\\t means the TAB control character\"" |
Explanation | Double quoted values can hold special special characters and variables. Inside double quotes backslashes are automatically doubled with the JSON storage format. |
...
Expression |
|
---|---|
JSON | "var": 1 |
Explanation | Numeric values that are assigned without use of quoting are considered being numbers. |
Expression |
|
---|---|
JSON | "var": "'05331'" |
Explanation | Numeric values that are assigned with single quotes are considered being strings and for exapmle preserve leading zeros. |
Operators
Comparison Operators
...
Note that a call to the variable
function will fail if the variable is unknown and a default value has not been specified.
Examples:
Expression |
|
---|---|
JSON | "variable( \"my_var\", job=\"my_job\" )" |
Comment | The value of the variable my_var is returned as available with the job my_job in a workflow. If the variable is unknown then the function fails. |
Expression |
|
---|---|
JSON | "variable( \"my_var\", label=my_label, default=\"some value\" )" |
Comment | The value of the variable my_var is returned as available with the job identified by the label my_label in a workflow. If the variable is unknown then the default value some value is returned. |
Built-in Variables
Built-in variables are available at the following scopes:
...
Overview
Content Tools