Correct Answer:
A. To perform a logical test and return a value based on the result
Explanation:
The IF function checks a condition and returns one value if TRUE and another if FALSE.