Misc / AVSTrans Automation greatly enhances the syntax of the AVS coding
language, simplifying the work with megabuf, loops and ifs and many more!

After activating the "Enable AVSTrans Support" checkbox you have access to a
number of new possibilities including:
 - writing code as parameters of functions (like loop() or if())
     Example:
     -----------------------------
     if(above(a,b)
       pn=0;
       loop(n,
         assign(megabuf(pn),a);
         assign(megabuf(pn+1),b);
         pn=pn+2;
       );
     );
     -----------------------------
       
 - using megabuf on the left side of an equal sign
     -----------------------------
     Example:
     if(above(a,b)
       pn=0;
       loop(n,
         megabuf(pn)=a;
         megabuf(pn+1)=b;
         pn=pn+2;
       );
     );
     -----------------------------

 - use automatic replacements that are done before the code is compiled
   (much like macros in C/C++, except that these replacements count for the
   whole code)
     -----------------------------
     Example:
     #define xp megabuf(pn)
     #define yp(a) megabuf(a+1)
     if(above(a,b)
       pn=0;
       loop(n,
         xp=a;
         yp(pn)=b;
         pn=pn+2;
       );
     );
     -----------------------------
   
You can also put the #defines into the "Global code" edit box of the config
screen to have them autoprefixed to each and every code block in the whole
preset. This will save you a lot of typing and make your code look much nicer.
