I'm trying to make a mcl that test variable #PT to see if it is a 0 or a 1
using a WHILE, ENDW statement.
Below is what I came up with...doesn't work!

//
WHILE(#PT<0, OR #PT>1 )// Be sure PT is a 0 or a 1
 PROMPT[TX="Is this a die section with pockets where you have to add a point
for the home move...\n
 Enter  0  for NO\n
 Enter  1  for YES", VN="PT"]
        #PT=1000000  // this resets PT variable to an unknown value
ENDW
//

What I'm looking for a mcl file to do the following...

1) Ask the user to input a 0 or a 1 for #PT variable
2) Check the user's input. If it is not a 0 or a 1 try again
3) If #PT is a 1 I'll run a P.mcl macro
4) If #PT is a 0 I'll carry on with rest of the .mcl file



Regards,

Michael Senack, X354
Your local friendly neighborhood CNC Programmer


======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

Reply via email to