Which of the following is valid syntax for if else statement in R?

Which of the following is valid syntax for if else statement in R? Correct Answer

Related Questions

What does the "else" statement in an "if-else" statement block indicate?
What is the purpose of the 'else' statement in C's 'if-else' control structure?