Hi,
How do I do this in a script?
if var x = var y and var z = yes then
else goto another part of the script
Thanks
Yes I know to find that info, but as a beginner that is too hard for me to understand..
:local x [/system identity get name];
:local y "MikroTik";
:local z [/system clock get dst-active];
:if ($x = $y && $z) do={
:put "Router identify is 'MikroTik' and we are currently in dailight savings time.";
} else={
:put "Either router identity is not 'MikroTik', we are not currently in dailight savings time, or both.";
};
:if (($VAR1 = "YES") && ($VAR2 = "NO")) do={
Nope... that's not what I meant... But, see above... SOLVED thanks to a friend...:if (($VAR1 = "YES") && ($VAR2 = "NO")) do={
It would help others, if you could post that solution here.