REM In DuckyScript, variables are initiated using the VAR command.
REM Example Integer Variable
VAR $SPEED = 2000
REM Example Boolean (TRUE/FALSE or 1/0)
VAR $BLINK = TRUE
VAR $BLINK = 1
REM Unlike a constant (declared by DEFINE), a variable is appended with the dollar sign ("$") sigil.
REM Constant string which may not change
REM throughout the payload
DEFINE FOO Hello, World!
REM Variable integer which may change
REM throughout the payload
VAR $BAR = 1337
REM The constant FOO will always be replaced with the string "Hello, World!" throughout the payload.
REM While the variable $BAR currently holds the value 1337, this may change throughout the payload — which will be detailed shortly by using operators.