Created
January 19, 2019 23:09
-
-
Save Tombarr/f4629cfbef9095dbe0318b0f1bb69f7e to your computer and use it in GitHub Desktop.
Cond statement in Elixir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cond do | |
x > y -> "x is larger" | |
x < y -> "x is smaller" | |
x == y -> "x and y are equal" | |
true -> "this is always true" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment