table active=waypoints scope=parent macrodelete action=delscope macrodelete action=commit |
Mfilter where=Regex("river",name) If $_FilterCount > 0 While not($_eol) table active=waypoints scope=parent macrodelete action=delscope # don't do the commit here because there may be more to do table active=caches goto position=next endwhile # now the slow part - physically remove all the deleted child waypoints table active=waypoints scope=all macrodelete action=commit table active=caches # not really required here, but should be included if you have more code after the endif EndIf |
table active=waypoints scope=all macrodelete action=delscope macrodelete action=commit |
table active=waypoints scope=all while not($_eol) if $d_cType = "Parking Area" MacroDelete action=DelCurrent endif Goto Position=Next EndWhile # now remove the flagged deletes MacroDelete action=commit |