Using the LCD I obtained the values for DEC RTCHours, my logic being that this then gives me a variable which I can then use, eg 21hrs gives a value of 33.

I then tried to use this value thus

Code:
	LCDOut $FE, $D4,"rtc value = ", dec rtchour
	AlarmH1 = Dec(RTCHour)
    If alarmH1=33 then
     alarmled=1
    endif
But I get a bad expression error with the AlarmH1 = Dec(RTCHour)

If I can get the value into a varaible somehow I have something to work with