🔀 R Conditional Statements

R uses if, else if, and else to control the flow of a program based on conditions.

📖 Basic Syntax

📝 Example: If-Else in R

Console output will appear here...
💡 Tip: You can nest if statements inside each other, or use ifelse() for quick inline evaluations.