Thank Ron, Its a arithmatic instruction. I'm using it to count bad parts for a class. The problem is that if a senor saids its bad,it has to be three in a row before it can count them, but if it is only two or one they cann't be counted as bad.They have to be counted as good ones.Only three in a row can be counted. If I could remember how to get my program to down load on this I would show you what I'm trying to do.