to all,

use of word in a for/next statement.
Code:
	init:
		decideInterval		var		WORD
		TIMEINTERVAL		con		600
	main:
		IF decideInterval = TIMEINTERVAL then
			decideInterval = 0 
			(any code methods)
		ENDIF
		GOTO	MAIN
	
		END
It satisfies the IF condition unexpectedly. Changing the decideInterval type to BYTE and of course TIMEINTERVAL to max 255(or any 8Bit arbitrary value) will work correctly. Im using a PIC16F628 running 8MHz crystal oscillator. any ideas on this? thanks very much

regards,
yettie