mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-06-29 12:50:08 +02:00
initial commit
This commit is contained in:
commit
c782dde326
61 changed files with 1457 additions and 0 deletions
12
scripts/ch8-01-for-basic.rsc
Normal file
12
scripts/ch8-01-for-basic.rsc
Normal file
|
@ -0,0 +1,12 @@
|
|||
# filename: ch8-01-for-basic.rsc
|
||||
|
||||
# Let's print out a series of numbers and part of
|
||||
# the 12 times table
|
||||
:for LoopCount from=1 to=5 do={
|
||||
|
||||
:put ("Current loop counter is: $LoopCount");
|
||||
:put ("12 x $LoopCount is: " . (12 * $LoopCount));
|
||||
}
|
||||
|
||||
# Print out the final loop count (fails!)
|
||||
:put ("Final loop count is: " . $LoopCount);
|
Loading…
Add table
Add a link
Reference in a new issue