

// Script function: addition 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 EMadd( number EMa, number EMb )
{
    return EMa + EMb
}
number EMc
number EMd
EMc = 1
EMd = 2

result ("The sum of EMa and EMb is: " + EMadd (EMc, EMd))