The >, < and = operations are easily done by subtracting the two values being compared and looking at the zero and carry flags. I think the PIC databooks have examples of this under the sublw and subwf instruction explanations. Cheers Roland