I know it is late and maybe that is the problem. I am trying to run multiple IF-THEN statements. Individually they work fine, but combining them does not. The combined statements assemble fine. BTW, I am reading a clock chip and after every minute rollover, I cycle a cooling fan approx 7 seconds at the 0 second point and 30 second point. I may have to adjust this time (or increase the number of cycles) so I want to be flexible. Where am I missing it?

IF (rtcsec >= $00) AND (rtcsec <= $07) THEN
portb.7 = 1
IF (rtcsec >= $30) AND (rtcsec <= $37) THEN
portb.7 = 1
ELSE
portb.7 = 0
ENDIF
ENDIF