It looks to me you want three software PWM channels, all 50% duty cycle 100ms ON/100ms OFF,
that you switch on & off based on the values in variables A,B & C.

Even though this code won’t do that, I don’t understand why you check X=1, X>1, X>2, all for the same result.
Could you have just:
Code:
IF A != 0 THEN
HIGH LED1
PAUSE 100
LOW LED1
PAUSE 100
ENDIF
and then the same for B & C?

Just want to be sure of what you want to do.