I can print a serial array but not use it in an IF statement

Why is it comparing a zero?

Because strcmp() returns 0 on a match.