I have not learned the whole documentation because that would take too much time, which would not pay back, since I don't plan to use Avisynth for much else than assisting the restoration of a couple of videos. The problems I wanted to solve are simple, and based on previous programming experience it should not have caused much problem with any logical, common sense, user friendly programming language. From the runtime environment I have used ConditionalFilter, ScriptClip, ConditionalReader, and WriteFile, but they don't make programing much easier.

How would you solve the same problem using common programming logic with for - next, if - then cycles and branching (in runtime environment - or otherwise)?