Temp (short for temporary) is a variable, similar to a Var, but it's limited in scope to the context element state.
Temps are not persistent during the simulation run - they can be created and destroyed from the commands inside the element states. They are temporary.
Temps can't be referenced using addresses. A temp can be only referenced from within the element state where it was created.
To reference a temps in declarations we precede their with a dolar sign symbol
Commands for temps
Create a new temp. This command by default destroys the temp automatically after state execution is done (all the commands in the state are run).
Create a new temp. Don't destroy the temp automatically after state execution is done.
Destroy the temp.