is there a possibility to get the network in /ip address
heres my script but i cant get the network. i can only get the address and put it on the routes
:local ipx [/ip address get [find where interface=GL] network]
:local ip [:pick $ipx -1 [:find $ipx "/" -1]]
/ip route
:local idwatch [find where comment=WAN3]
:if ($ip != $idwatch) do={
/ip route set [find comment="WAN3"] gateway=$ip;
}