mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-07-01 13:44:28 +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,16 +0,0 @@
|
|||
# filename: ch7-04-if-else-vars.rsc
|
||||
|
||||
# Get the current time
|
||||
:local CurrentTime [:system clock get time];
|
||||
:put "The current time is : $CurrentTime";
|
||||
|
||||
# Check if it's after noon
|
||||
:if ($CurrentTime > 12:00) do={
|
||||
:local TimeOfDay "Afternoon/Evening"
|
||||
} else={
|
||||
# otherwise, it must be morning (00:00 to 11:59)
|
||||
:local TimeOfDay "Morning"
|
||||
}
|
||||
|
||||
# Print out the time of day
|
||||
:put "At the moment, it's : $TimeOfDay"
|
Loading…
Add table
Add a link
Reference in a new issue