mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-07-01 05:34:29 +02:00
19 lines
386 B
Text
19 lines
386 B
Text
|
# filename: ch6-08-local-vars.rsc
|
||
|
|
||
|
# Create a local variable
|
||
|
:local SmallNumber;
|
||
|
|
||
|
# Print its value
|
||
|
:put ("Variable contents: $SmallNumber");
|
||
|
|
||
|
# Assign some data to the variable
|
||
|
:set SmallNumber 2
|
||
|
|
||
|
# Print its value again
|
||
|
:put ("Variable contents: $SmallNumber");
|
||
|
|
||
|
# Let's change the variable value
|
||
|
:set SmallNumber 3
|
||
|
|
||
|
# Print its value again
|
||
|
:put ("Variable contents: $SmallNumber");
|