Script to list default gateways

Hello,

can anybody help me with ceating script to get all gateway with dst-address 0.0.0.0/0?

I test with single /ip route get command:
:local gateway [/ip route get [find dst-address 0.0.0.0/0] gateway]
but I have more than one default gateway, because I have setup simple internet backup with second WAN and second default route (check by ping). So this command not get array with 2 (or more) gateways.

Secondly I test this (with for command):
:local gateway [/ip route get number=$i value-name=gateway]
but with number=0 ~ XX is not show any of default route.

:foreach i in=[/ip route find where dst-address="0.0.0.0/0"] do={
   :put [/ip route get $i gateway];
}

Thank You