Versions Compared

Key

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

...

Initialization Arguments

Job Arguments

Assignment

...

to Variables

The following assignment types are available:

...

Constant values are assigned by use of single quotes for an expression. No substitution of variables is performed with within single quoted values.

  • Use with single quotes

    Inputvar = 'some value'
    Outputsome value



  • Use with double quotes

    Inputvar = "some value"
    Outputsome value



  • Use with single quoted values

    Inputvar = 'some \'quoted\' value'
    Outputsome 'quoted' value



  • Use with double quoted values

    Inputvar = "some \"quoted\" value"
    Outputsome "quoted" value



  • Use with double quoted and single quoted values

    Inputvar = "some 'quoted' value"
    Outputsome 'quoted' value



  • Use with $ character from single quoted values

    Inputvar = 'some $dollar value'
    Outputsome $dollar value



  • Use with $ character from double quoted values

    Inputvar = "some \$dollar value"
    Outputsome $dollar value

Examples for Variable References

...

  • Use without quotes
    Assume var2 to hold the value: some value

    Inputvar = $var2
    Outputsome value



  • Use with double quotes
    Assume var2 to hold the value: some value

    Inputvar = "$var2"
    Outputsome value



  • Use with constant values from double quoted values
    Assume var2 to hold the value: second value

    Inputvar = "first value, $var2"
    Outputfirst value, second value



  • Use with string concatenation from double quoted values
    Assume var2 to hold the value: second value

    Inputvar = "${var2}first value"
    Outputsecond valuefirst value



  • Use with constant values and single quoted values
    Assume var2 to hold the value: second value

    Inputvar = "first, '$var2'"
    Outputfirst, 'second value'