$ - These are the system variables/Session Parameters like $Bad file, $input file, $output file, $DB connection, $source, $target etc.
$$ - User defined variables/Mapping Parameters like $$State, $$SRC, $$Time, $$Entity, $$Business_Date etc.
You can create a mapping variable/parameter with the name of $$myvar to pass the value in the mapping.