mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-12-10 12:39:29 +00:00
update for v6/v7 support
This commit is contained in:
parent
4871e9432b
commit
b10b99bd87
120 changed files with 1479 additions and 22 deletions
|
|
@ -1,32 +0,0 @@
|
|||
# filename: ch6-11-global-vars2.rsc
|
||||
|
||||
# Lets get a dump of our current global variables:
|
||||
:environment print;
|
||||
|
||||
# Let's declare a new global variable
|
||||
:global Beverage "coffee";
|
||||
|
||||
# Let's declare global vars that already exist so that
|
||||
# we may access them
|
||||
:global Fruit;
|
||||
:global TellTheTruth;
|
||||
|
||||
# Let's print modify the vars if we no not
|
||||
# wish to tell the truth
|
||||
if ($TellTheTruth = false) do={
|
||||
:set Fruit "bananas";
|
||||
:set Beverage "beer";
|
||||
}
|
||||
|
||||
# Let's see which are my favourite fruit and
|
||||
# beverage
|
||||
:put "My favourite fruit is: $Fruit";
|
||||
:put "My favourite beverage is: $Beverage";
|
||||
|
||||
if ($TellTheTruth = false) do={
|
||||
:put "(pssst...this is actually a lie)";
|
||||
}
|
||||
|
||||
# Lets get a dump of our current global variables:
|
||||
:put "\nCurrent global variables:\n";
|
||||
:environment print;
|
||||
Loading…
Add table
Add a link
Reference in a new issue