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

    Inputvar = $var2
    Outputsome value
    JSON"var": "$var"



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

    Inputvar = "$var2"
    Outputsome value
    JSON"var": "\"$var\""



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

    Inputvar = "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

    Inputvar = "${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

    Inputvar = "first, '$var2'"
    Outputfirst, 'second value'
    JSON"var": "\"first, '$var'\""