mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-03 12:39:35 +00:00
Compare commits
4 commits
7dc230cceb
...
0d71cd5b3b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d71cd5b3b | ||
|
|
33061fea21 | ||
|
|
0ceedab5db | ||
|
|
6990084d98 |
3 changed files with 10 additions and 3 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
|
@ -240,9 +240,16 @@
|
|||
|
||||
# multiply given character(s)
|
||||
:set CharacterMultiply do={
|
||||
:local Str [ :tostr $1 ];
|
||||
:local Num [ :tonum $2 ];
|
||||
|
||||
:if ($Num = 0) do={
|
||||
:return "";
|
||||
}
|
||||
|
||||
:local Return "";
|
||||
:for I from=1 to=$2 do={
|
||||
:set Return ($Return . $1);
|
||||
:for I from=1 to=$Num do={
|
||||
:set Return ($Return . $Str);
|
||||
}
|
||||
:return $Return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
:global CharacterMultiply;
|
||||
|
||||
:return ([ $CharacterMultiply " " $Level ] . "-" . $Prefix . "-> " . $Value);
|
||||
:return ([ $CharacterMultiply " " ($Level * 2) ] . "-" . $Prefix . "-> " . $Value);
|
||||
}
|
||||
|
||||
:local TypeOf [ :typeof $Input ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue