Ruby - Control Flow
What does the elsif keyword do in Ruby?
What does the elsif keyword do in Ruby?
elsifelsif keyword is used to check another condition only if the previous if or elsif condition was false.elsif. It does not end the statement, nor repeats code, nor runs only if all previous conditions were true.if or elsif was false. -> Option Celsif = check next condition [OK]elsif checks next condition if previous false [OK]elsif ends the if statementelsif with elseelsif runs only if all previous are true15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions