logical if in C

No, it isn't legal.
It is spelled "if", not "If"

Also, you're doing an assignment. Did you mean to?