Within WhatsConfigured scripts the dollar sign, '$', is a reserved character required for use in variable references. If a script requires the use of a dollar sign outside of the variable reference it may be escaped with an additional dollar sign.
For example to write the Password 'pa$$word' you would escape the two dollar signs with additional dollar signs: 'pa$$$$word'
Note: To avoid erroneous dollar sign variable references WhatsConfigured allows a single unescaped dollar sign when not followed by an open parentheses "$(
". A line containing "thi$"
would pass without needing to be escaped. Whereas the line "thi$("
would require the dollar sign be escaped "thi$$(
".
Use the table below as an illustration of how many $'s you must enter in WhatsConfigured to achieve the appropriate number of $'s in a script command.
To achieve x # of $'s |
Enter this many $'s in the code |
$ |
$$ |
$$ |
$$$ or $$$$ |
$$$ |
$$$$$ (5) or $$$$$$ (6) |
$$$$ |
$$$$$$$ (7) or $$$$$$$$ (8) |