You can do this recursively. http://forum.mikrotik.com/t/advanced-routing-failover-without-scripting/136599/1