
// Script function: Creates a recursive/cyclic function


// 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 GlobalSinoCycle= 0
void GlobalSinoRecursiveFunction(number EMCycleMax){ // Variable "maxd" created inside a code block of "{}" is local to this block
Result("\n GlobalSino Cycle: " + GlobalSinoCycle)
if( GlobalSinoCycle < EMCycleMax ){ 
GlobalSinoCycle++
GlobalSinoRecursiveFunction(EMCycleMax)
}
else
return
}
GlobalSinoRecursiveFunction(6)
Result("\n")