What is the function of the IF function in MS Excel?