Character mismatch when characters are the same

I am looking for a specific character to be returned on serial. That character is returned and test it never ever comes back as true. I have tried just comparing the byte values. I really don't understand why these don't match.

code:

if(Serial1.available()){
        while(Serial1.available()){
          char c=Serial1.read();
          Serial.print(c,HEX);Serial.print(' ');Serial.print(char(c));Serial.print(' ');
          if(c=='>'){

Serial output:

3E >

tried if(c==0x3E) and if(c=='>') and if(char(c)=='>') and a dozen other ways. does any one have any idea what the world is wrong with this

Charlie

What should happen if a match is found ?

does any one have any idea what the world is wrong with this

Yes. The code causing the problem was omitted from your post.