I have the following IF statement in my pro/program for my assebly:
IF QTY==4 | STY=="H" & QTY==3 & HND=="R"
This IF statement is used to turn on/off a part in an assembly. The "QTY==4" will not turn on the part, however the "STY=="H" & QTY==3 & HND=="R"" will. I have tried to reorder the two statements, but then "STY=="H" & QTY==3 & HND=="R"" will not work and "QTY==4" will. Essentially whatever follows the OR character works and whatever precedes it doesnt work.
I have had this issue with other IF statements as well. Please let me know if there are any character errors, other ways to convey this, etc.
Thanks.
IF QTY==4 | STY=="H" & QTY==3 & HND=="R"
This IF statement is used to turn on/off a part in an assembly. The "QTY==4" will not turn on the part, however the "STY=="H" & QTY==3 & HND=="R"" will. I have tried to reorder the two statements, but then "STY=="H" & QTY==3 & HND=="R"" will not work and "QTY==4" will. Essentially whatever follows the OR character works and whatever precedes it doesnt work.
I have had this issue with other IF statements as well. Please let me know if there are any character errors, other ways to convey this, etc.
Thanks.