The difference stated above is wrong. $$ is used both in variables as well as parameters. Please give the difference if anybody knows. Please do not give wrong answers.
Genarally parameters is used to flexibley run the session. $ means suppose we are using predefined variable then it comes $ Example :- $status succeeded.
$$means suppose we are using our own variables then it comes $$ Example : $$ABC succeeded
$ - is used to denote Server level Variables/Parameters. $$ - is used to denote Mapping level Variable/Parameter.
This is the convention that we generally follow to differentiate between Server Level/Mapping Level variables or parameters.
Thus anything related to a server or execution related activities we use $ this means whenever we define any file name or any database name we use a single $ and whenever there is some variable related to mapping or mapplet we use $$