# define an array ( i have only array until april as an example)
:global monArr {{"jan";"01"};{"feb";"02"};{"mar";"03"};{"apr";"04"}};
# get current month
:global mon [:pick [/system clock get date] 0 3];
:foreach i in=$monArr do={
:if ([:pick $i 0] = $mon) do={
:put [:pick $i 1];
}
}
In my example I just did :put […]
instead of $mon use verything that is in [..]
By the way why you need all this crap, if you just do
/system backup save
it will automatically generate backup file with filename like
MikroTik-18032009-0934.backup