if 式
真偽値の判定に用いる
code:ruby
# if-then, if-then-else
# 単数行
if condition then result1 else result2 end
code:ruby
# 構文の複雑性のため廃止するか検討
# if-then, if-then-else
# 複数行かつ単数式
if condition1 then result1
elif condition2 then result2
else result2
end
code:ruby
# if, if-else
# 複数行かつブロック
if condition1 {
other_expr
put result1
} elif condition2 => result2
else => result3
match 式
パターンマッチを行う
条件式として真偽値を与えると警告: if 式で代用できるため
else パターンは任意指定だが、全パターンを記述しないとエラー
code:ruby
match condition
patt1 => expr1
patt2 =>
other_expr
put patt2
else => other_patt
end