All custom procedures described in the script are to be in the same program body and before procedures in which they are called.

procedure ProcedureName(list of parameters){
  //procedure body
}
The names of parameters are to consist of one uppercase character.

Examples use:

procedure ProcedureName(A,B)
 
{
  n=A+" "+B;
  //when running macro 1 n=«Macro 1», when running macro 16 n=«Macro 16»
}
 
 
OnEvent("MACRO",N,"RUN")
 
{
  a1=N;
  a2="Macro";
  ProcedureName(a2,a1);
}