PLEASE everyone i am trying to delete routes that appears twice on my routing table, i ran the following script to no avail ; really new to this stuff
:global countWan 0;
:while(/ip route find [comment="WAN1" dst-address=0.0.0.0/] do { :set countWan($countWan+1);}
:if ($countWan=0) do
{
/ip route add gateway= lte1 dst-address=0.0.0.0/0 comment="WAN1" }
else ={ :if ($countWan1>)1 {
/ip route remove [ find comment ="WAN1"]
}
}