If-expression not evaluating

First time poster here. I hope the question is fine, but please notify me in the comments or edit if sth is wrong with my question

The problem I’m facing is that my if-statement isn’t evaluating, regardless of both the condition and both values evaluating correctly in Mathematica 9.0:

if[CoefficientList[Det[A - IdentityMatrix[3]x], x] == CoefficientList[x^3,x], 2, 3, 3] 

Where A is a square-matrix. The basic idea is to get a value based on a whether A is nilpotent. The output I get is

if[False, 2, 3, 3] 

Thanks captain obvious. Why don’t I get 3, as expected?