「Ruby」複数の条件分岐(if elseif)のサンプル
サンプルコード
tt = "002"
if tt == "001" then
print("aaa")
elsif tt == "002" then
print("bbb")
else
print("other value")
end
Coding Changes the World
サンプルコード
tt = "002"
if tt == "001" then
print("aaa")
elsif tt == "002" then
print("bbb")
else
print("other value")
end