Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 22142

Scripting • Re: [SOLVED] Using Dynamic Variable Names

$
0
0
Try This
Code:
:local id 1;:local nwshost Tes1,Tes2,Tes3,Tes4,Tes5,Tes6,Tes7,Tes8,Tes9:foreach nwsarr in=$nwshost do={:local date [/system clock get date]:local time [/system clock get time][:parse ":global Down$nwsarr"];[:parse ":global check$nwsarr"];[   :execute (" \     :if (check$nwsarr != 1) do={:set check$nwsarr \"2\"}; \     :set Down$nwsarr \"$date $time\";  \   ")];:set id ($id+1)}

Statistics: Posted by maulana1979 — Mon Jan 13, 2025 11:01 am



Viewing all articles
Browse latest Browse all 22142

Trending Articles