hexagon logo

Yes No Input comments

Is it possible to use a YES/NO comment to branch around a portion of a program? I don't want to have to do any gymnastics to get this done. I have a program that runs sub assemblies and one of these subs sometimes has a bracket on it that I want to skip the measurements on IF it isn't there.

I'm thinking something like

IF C1.INPUT = "NO" then goto XXXXX

I keep getting an "invalid number entered" error.

Thanks,

Bill
Parents
  • To carry this one step further:
    I would like to output the Yes/No as a stat to WinSPC. I tried to do a second if/end if with a variable set to 0 or 1 depending on the answer. I made a constructed feature and put this variable in the Z-axis coordinate and then toleranced out the Z position of that feature. With the "no" answer being zero which would make the feature Out of Spec and the quality technician would have to assign a cause in our WinSPC software. The trouble is, it reads the last variable every time no matter what answer was selected.
Reply
  • To carry this one step further:
    I would like to output the Yes/No as a stat to WinSPC. I tried to do a second if/end if with a variable set to 0 or 1 depending on the answer. I made a constructed feature and put this variable in the Z-axis coordinate and then toleranced out the Z position of that feature. With the "no" answer being zero which would make the feature Out of Spec and the quality technician would have to assign a cause in our WinSPC software. The trouble is, it reads the last variable every time no matter what answer was selected.
Children
No Data