2007-09-26から1日間の記事一覧

Rubyで条件分岐

if 条件 then 実行したい処理 end if 条件 then 処理1 else 処理2 end unless 条件 then 条件が偽の場合に実行したい処理 end 実行したい処理 if 条件 #または begin 実行したい処理 end if 条件 実行したい処理 unless 条件 #または begin 実行したい処理…