mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-06-24 18:48:38 +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
|
@ -1,21 +0,0 @@
|
|||
# ch6-01-variable-value-test.rsc
|
||||
|
||||
# Declare a variable with no value
|
||||
:local BridgeName;
|
||||
|
||||
# Test if the variable has a value
|
||||
:if ([:typeof $BridgeName] = "nothing") do={
|
||||
:put "Test 1: this variable has no value!";
|
||||
} else= {
|
||||
:put ("Test 1: the variable value is: $BridgeName");
|
||||
}
|
||||
|
||||
# Set a value for the variable
|
||||
:set BridgeName "Bridge1";
|
||||
|
||||
# Test if the variable has a value
|
||||
:if ([:typeof $BridgeName] = "nothing") do={
|
||||
:put "Test 2: this variable has no value!";
|
||||
} else= {
|
||||
:put ("Test 2: the variable value is: $BridgeName");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue