
09-15-2011, 04:03 AM
|
| | | Join Date: Sep 2010 Location: Australia
Posts: 733
| |
Originally Posted by CHP CAM-guy Hello all,
Could someone please tell me what's wrong with this?
IF[#26EQ#0AND#24NE#0]GOTO3
Perhaps I'm using "and" incorrectly?
Cheers
Allan, Copenhagen |
Alan,
The question that begs answering is what issue are you having?. Is the instruction not operating as you expect, or are you getting an error. I would think its the former.
#0 does not equal Zero, but is always vacant. Vacant variables differ from 0 in EQ and NE. Accordingly, if #26 is anything other than vacant, it will never test true in your example.
For example
#26 = 0
#26 EQ #0 will test false
Regards,
Bill |