set R2WIFI value="";
global R2WIFI (:put [/ip route get [find distance=33] gateway]);
put $R2WIFI;
:if ($R2WIFI = "") do={ /ip route disable [find comment=Secondary-wifi]} else={/ip route enable [find comment=Secondary-wifi]; /ip route set gateway=$R2WIFI [find comment=Secondary-wifi]};