// Script function: This script corresponds to SWITCH statement in C++.

// 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 EMi 

for(EMi=0; EMi<4; EMi++)
{
 
if ( 1 == EMi)
{
Result("Help on FOR in DM\n")
}

if ( 2 == EMi)
{
Result("Help on IF in DM\n")
}

if ( 3 == EMi)
{
Result("Help on SWITCH in DM\n")
}

Result( "\n\n" )

}