PPPoE Script

Hello

I’m trying to make a script that lists all the “PPPoE Secrets” that are not connected. Starting from this script

:global list “”;
:foreach i in [/ppp active find] do={:if ([:find
[/ppp active get $i name] “m”]=0) do={:set list ($list . “,” . $i);}};
/ppp active print detail without-paging from $list;

Has anyone done a script with this logic?

Explaining better

In place of the “m” I would like to put all the names of the secrets

And if you have not been connected save to a list and then show