mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-07-06 01:11:42 +00:00
Compare commits
No commits in common. "0d71cd5b3bcb2ebf0a6d43ca74c04f0166ef5b24" and "7dc230cceb6166632cd1513dd294b5f6b6bb0226" have entirely different histories.
0d71cd5b3b
...
7dc230cceb
3 changed files with 3 additions and 10 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
|
@ -240,16 +240,9 @@
|
||||||
|
|
||||||
# multiply given character(s)
|
# multiply given character(s)
|
||||||
:set CharacterMultiply do={
|
:set CharacterMultiply do={
|
||||||
:local Str [ :tostr $1 ];
|
|
||||||
:local Num [ :tonum $2 ];
|
|
||||||
|
|
||||||
:if ($Num = 0) do={
|
|
||||||
:return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
:local Return "";
|
:local Return "";
|
||||||
:for I from=1 to=$Num do={
|
:for I from=1 to=$2 do={
|
||||||
:set Return ($Return . $Str);
|
:set Return ($Return . $1);
|
||||||
}
|
}
|
||||||
:return $Return;
|
:return $Return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
:global CharacterMultiply;
|
:global CharacterMultiply;
|
||||||
|
|
||||||
:return ([ $CharacterMultiply " " ($Level * 2) ] . "-" . $Prefix . "-> " . $Value);
|
:return ([ $CharacterMultiply " " $Level ] . "-" . $Prefix . "-> " . $Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
:local TypeOf [ :typeof $Input ];
|
:local TypeOf [ :typeof $Input ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue