IF macro
This commit is contained in:
parent
02e378be16
commit
add9f0619e
|
@ -50,3 +50,9 @@
|
|||
{noreply, State}
|
||||
end)).
|
||||
|
||||
-define(IF(Cond, TrueFun,FalseFun),
|
||||
(case (Cond) of
|
||||
true ->(TrueCase);
|
||||
false->(FalseCase)
|
||||
end)).
|
||||
|
||||
|
|
Loading…
Reference in New Issue