Variables are used to store values.
A variable consists in:
a name that uniquely identifies the variable,
and an associated value
Variables can be referenced inside expansion text or command parameters using the following syntax:
$(name)
When an expansion is produced, a variable name reference is replaced by the corresponding variable value.
I you have defined the following variable:
Variable name | Variable value |
---|---|
city |
New York |
then the following expansion:
will produce I live in New York!.
I you have defined the following variable:
Variable name | Variable value |
---|---|
editor |
C:\WINDOWS\system32\notepad.exe |
then the following expansion using the Launch command:
will launch Notepad.