Q. If then equals

 1018  145 Determinants Report Error

Solution: