
// Script function: global and local variables

// Unless named starting with GlobalSino, EM, My, Self, the function commands are defined 
//by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html



void EMFunction1();
void EMFunction2();
number EMCount; // this is a global variable
void main()
{
number EMi; // this is a local variable
for(EMi=0; EMi<10; EMi++) {
EMCount = EMi * 3;
result (EMCount + "\n\n") 
EMFunction1();
}
return;
}
void EMFunction1()
{
result (EMCount + "\n\n")// output a newline
EMFunction2();
}
void EMFunction2()
{
number EMCount; // this is a local variable
for(EMCount=0; EMCount<3; EMCount++)
result ("\n\n") // cout << '.';
result (EMCount + "\n\n") 
}

main()