I'm trying to do a counter that would count the amout of times when a tag (measuring conditions) is either 0 or 32767. The counter should count +1 in either case.
I'm trying something like this (but I know it's a mess):
def count(self):
while x == 0 or X == 32676
print count += 1
or somethin like this:
def isEqual(num):
x == 0 or x == 32676
print counter += 1
elif: print counter