-
Notifications
You must be signed in to change notification settings - Fork 27
Variables
Kefkius edited this page Sep 5, 2015
·
2 revisions
The Variables tool allows one to store arbitrary values.
The Variables tool can interact with the script editor. If the variable "abc" has the stored value "0x05", then the following script:
$abc OP_DUP
is equivalent to:
0x05 OP_DUP
As the above example illustrates, variables can be inserted into a script by entering the variable named prefixed with '$'.
The rule about quotation marks also works for variables. If the variable "def" has the stored value "Hello World", then the following two scripts are equivalent:
$def
"Hello World"