mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-04 04:59:35 +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)
|
||||
:set CharacterMultiply do={
|
||||
:local Str [ :tostr $1 ];
|
||||
:local Num [ :tonum $2 ];
|
||||
|
||||
:if ($Num = 0) do={
|
||||
:return "";
|
||||
}
|
||||
|
||||
:local Return "";
|
||||
:for I from=1 to=$Num do={
|
||||
:set Return ($Return . $Str);
|
||||
:for I from=1 to=$2 do={
|
||||
:set Return ($Return . $1);
|
||||
}
|
||||
:return $Return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
:global CharacterMultiply;
|
||||
|
||||
:return ([ $CharacterMultiply " " ($Level * 2) ] . "-" . $Prefix . "-> " . $Value);
|
||||
:return ([ $CharacterMultiply " " $Level ] . "-" . $Prefix . "-> " . $Value);
|
||||
}
|
||||
|
||||
:local TypeOf [ :typeof $Input ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue