mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-07-07 00:24:31 +02:00
update for v6/v7 support
This commit is contained in:
parent
4871e9432b
commit
b10b99bd87
120 changed files with 1479 additions and 22 deletions
12
scripts/v6/ch8-01-for-basic.rsc
Normal file
12
scripts/v6/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