
// Script function: FOR loop and IF ELSE statement.

// 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


number x

for(x=0; x<6; x++) 
{
if(x==1)
result ("x is " + x + " in the FOR loop now. \n")

else if(x==2)
result ("x is " + x + " in the FOR loop now. \n")

else if(x==3)
result ("x is " + x + " in the FOR loop now. \n")

else if(x==4)
result ("x is " + x + " in the FOR loop now. \n")

else
result ("x is not in between 1 and 4.\n\n")

}