mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-07-08 00:54: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
|
@ -1,16 +0,0 @@
|
|||
# filename: ch7-01-basic-if.rsc
|
||||
|
||||
# Print a greeting
|
||||
:put "Hello, I hope you're well.";
|
||||
|
||||
# Check if the time is after 6pm (get time in 21:46:04 format)
|
||||
:local CurrentTime [:system clock get time];
|
||||
:put "The current time is : $CurrentTime";
|
||||
|
||||
# Say good evening if time is after 18:00
|
||||
:if ($CurrentTime > 18:00) do={
|
||||
:put "Good evening!";
|
||||
}
|
||||
|
||||
# Say goodbye
|
||||
:put "Thanks for visiting, bye!";
|
Loading…
Add table
Add a link
Reference in a new issue