Script help

Hey guys.
I’m trying to make a script for a certain request, which is to enable and disable a user’s ppp/secrets.
The idea is to check if a given list in ip firewall address-list ex: jonny exists.
If it exists, I need to activate ppp/secrets, if not, deactivate it and drop the active connection, if it exists.
I tried to do it like this but I was unsuccessful.
Lose, I’m acting as a translator. Thanks.


{ global newLIB1 [ /ip firewall address-list get [find list=“jonny”]];
if ($newLIB1 != null) do= {
/ppp secret enable jonny
else
/ppp secret disable jonny
/ppp active remove [find name=“jonny”]
}}

:local newLIB1 [/ip/firewall/address-list find list="jonny"]
/ppp
:if ([:len $newLIB1] > 0) do={
  secret enable jonny
} else={
  secret disable jonny
  active remove [find name="jonny"]
}

Thanks,
It worked, I made an adjustment.
Did not accept “else”,
I ran the same search twice, but once >0 the other =0
resolved.