Solved Script to recreate the load balance mangle rules

No Chupaka, he has been unable to get mangling and PCC working in another thread so he bitches about it like spam everywhere else. :slight_smile:
However, if you want to help out, I would ask that you join us at this thread as I have been unable to solve what should be straightforward…
http://forum.mikrotik.com/t/load-balancing-dont-work/128208/1

What I find interesting on this thread is that the configuration is designed to deal with not all the WANs being available and thus I see no need for a script??
In the mangled routes, we check gateway = ping. Thus if one is not available the load is distributed amongst the remaining mangled routes and so on?
What am I missing in the logic??

Caveat: I cannot script or MT config myself out of a paper bag.