IF PORTC.4=1
or
IF PORTC.4=0

makes corresponding pin high or low?
I highly doubt that. I don't know how you're testing it, but if that's the case things are seriously broken.

You likely have some other issue.