if
if condition1 then
# condition1 true
elsif condition2 then
# condition2 true
else
# !condition1 and !condition2
end
case
case $age
when 0 .. 12
puts "Child"
when 13 .. 19
puts "Teenager"
else
puts "Adult"
end
if condition1 then
# condition1 true
elsif condition2 then
# condition2 true
else
# !condition1 and !condition2
end
case $age
when 0 .. 12
puts "Child"
when 13 .. 19
puts "Teenager"
else
puts "Adult"
end