Q. If then equals

 1019  145 Determinants Report Error

Solution: