What is the correct syntax of IF() function in Excel?

A.

=IF (logical_test, {[value_if_true]}, {[value_if_false]})

B.

=IF (logical_test, TRUE([value_if_true]), FALSE([value_if_false]))

C.

=IF (logical_test: [value_if_true], [value_if_false])

D.

=IF (logical_test, [value_if_true], [value_if_false])

Correct answer is D

The correct syntax of IF() function is:

=IF (logical_test, [value_if_true], [value_if_false])