elixir conditional if statements code example
Example: elixir if statement
iex> if true do
...> "This works!"
...> end
"This works!"
iex> unless true do
...> "This will never be seen"
...> end
nil
iex> if nil do
...> "This won't be seen"
...> else
...> "This will"
...> end
"This will"