I have 2 parts of code I want to execute. Both are conditionals
if Value1 < N do something
else if Value1 >= N do something
if Value2 < N do some
Erlang doesn't allow you to have an if without a true statement option. Whether or not this is something that is a true statement or an actual true is up to you, but it is commonplace to have your true be the else in other languages.
if
some_condition -> some_code;
some_other_condition -> some_other_code;
true -> else_code
end.
See the "What the If?" section on this page for more on this.