I’m trying to pass variables but with no success.
sms text:
:cmd password 1234567890 smsScript var=“test”
script:
:log info $var
What is wrong?
I’m trying to pass variables but with no success.
sms text:
:cmd password 1234567890 smsScript var=“test”
script:
:log info $var
What is wrong?
I do not know anything about SMS, but I know the scripting engine!
If you want the variable to last after the completion of your script, the variable must be declared global.
:cmd password 1234567890 smsScript :global var “test”
ADD: And I should have mentioned you need to change the script
:global var
:log info $var