

// Script function: Determine whether or not an entered number is in a specific range.


// 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 = 25
while ( 1 )
{
        if ( !GetNumber( "Enter a number from 10 to 25", x, x ) )
            exit( 0 )
        if ( x < 10 || x > 25 )
        {
            OkDialog( "Out of range" )
            continue // A continue statement.
       }
        result( x + "\n" )
}
