1. 학습
  2. /
  3. 강의
  4. /
  5. Intermediate R for Finance

Connected

연습 문제

If this, Else that

An extension of the if statement is to perform a different action if the condition is false. You can do this by adding else after your if statement:

if(condition) {
    code if true
} else {
    code if false 
}

지침

100 XP
  • Extend the last exercise by adding an else statement that prints "Do nothing!".