mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-07-31 16:24:55 +02:00
initial commit
This commit is contained in:
commit
c782dde326
61 changed files with 1457 additions and 0 deletions
19
scripts/ch6-08-local-vars.rsc
Normal file
19
scripts/ch6-08-local-vars.rsc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# 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");
|
Loading…
Add table
Add a link
Reference in a new issue