2007-05-05 if Erlang ガードで指定しなくてもifで条件分岐できる abs(N) -> if N >= 0 -> N; true -> -N end. 構文は if Condition1 -> Expr1; ... ConditionN -> ExprN end