If文
if文
if文john_height := 100
maria_height := 178
if john_height < maria_height {
println("Maria is taller than John")
}else文
else文joey_age := 12
kevin_age := 15
if joey_age > kevin_age {
println("Joey is older")
} else {
println("Kevin is older")
}else if文
else if文if..else文のネスト
if..else文のネストif..elseを式として扱う
if..elseを式として扱う演習
Last updated
Was this helpful?