Versions Compared

Key

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

...

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

    Input$var2
    Outputsome value
    JSON"var": "$var"



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

    Input"$var2"
    Outputsome value
    JSON"var": "\"$var\""



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

    Input"first value, $var2"
    Outputfirst value, second value
    JSON"var": "\"first value, $var2\""



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

    Input"${var2}first value"
    Outputsecond valuefirst value
    JSON"var": "\"${var2}first value\""



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

    Input"first, '$var2'"
    Outputfirst, 'second value'
    JSON"var": "\"first, '$var'\""
  • For variable names that include dots the name has to be specified within curly braces and has to be quoted with backticks.
    Within backticks any characters can be used expect for a backtick.

    Input${`mail.smtp.host`}
    Outputmail.sos-berlin.com
    JSON"var": "${`mail.smtp.host`}"