Mega Code Archive

 
Categories / Ruby / Statement
 

Syntax of using elsif Clauses in if Statements

if (condition1)   code to be executed if condition1 is true elsif (condition2)   code to be executed if condition2 is true else   code to be executed if condition1 and condition2 are not true