can i request for this script
limit only 4 characters in ppp comment wherever i put 10characters
i have script but not running
:local counter
:local check
:foreach counter in=[/ppp secret find] do={
:set check [:pick [/ppp secret get $counter value=comment] 0 4]
:if ($check=“0000”) do={
I am not quite sure if this is what you need, but maybe it will help you:
{
:local counter
:local check
:foreach counter in=[/ppp secret find] do={
:set $check [/ppp secret get $counter value=comment];
:set $check [pick $check 0 4];
:put $check}
}
I am not quite sure if this is what you need, but maybe it will help you:
{
:local counter
:local check
:foreach counter in=[/ppp secret find] do={
:set $check [/ppp secret get $counter value=comment];
:set $check [pick $check 0 4];
:put $check}
}
thank you sir i use your script but still not running and nothing happens.
Well, you have to change the last line with the configuration you want to achieve. Perhaps, this code is that you want to use?
{
:local counter
:local check
:foreach counter in=[/ppp secret find] do={
:set $check [/ppp secret get $counter value=comment];
:set $check [pick $check 0 4];
:ppp secret set $counter comment=$check;
}
}
Well, you have to change the last line with the configuration you want to achieve. Perhaps, this code is that you want to use?
{
:local counter
:local check
:foreach counter in=[/ppp secret find] do={
:set $check [/ppp secret get $counter value=comment];
:set $check [pick $check 0 4];
:ppp secret set $counter comment=$check;
}
}
wow. thank you very much sir. the code is smooth
one more sir
can you add script sir that whatever character or number i input in comment the output is =to PAID
except NCUT comment