Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expression
some value
JSON"var": "some value"
ExplanationUnquoted 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
'some value'
JSON"var": "'some value'"
ExplanationSingle quoted values are considered string constants.
Expression
"\t means the TAB control character"
JSON"var": "\"\\t means the TAB control character\""
ExplanationDouble quoted values can hold special special characters and variables. Inside double quotes backslashes are automatically doubled with the JSON storage format.

...

Expression
1
JSON"var": 1
ExplanationNumeric values that are assigned without use of quoting are considered being numbers.
Expression
'05331'
JSON"var": "'05331'"
ExplanationNumeric 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
variable( "my_var", job="my_job" )
JSON"variable( \"my_var\", job=\"my_job\" )"
CommentThe 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
variable( "my_var", label=my_label, default="some value" )
JSON"variable( \"my_var\", label=my_label, default=\"some value\" )"
CommentThe 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:

...