wifinigel.MikrotikScripting/scripts/v6/ch5-05-indentation.rsc

10 lines
208 B
Text
Raw Normal View History

2023-01-19 21:27:15 +00:00
# ch5-05-indentation.rsc
2023-02-19 13:53:15 +00:00
# Create an if-else statement with indentation
2023-01-19 21:27:15 +00:00
:local DayOfWeek "Monday";
if ($DayOfWeek = "Monday") do={
:put "Boo...it's Monday.";
} else={
:put "Yay! It's not Monday!";
}