This file contains 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
# boolean values, use if | |
if expression, do: this(), else: that() | |
# non-boolean multi-value single expressions, use case | |
case expression do | |
value1 -> one() | |
value2 -> two() | |
value3 -> three() | |
_ -> anything_else() | |
end |
OlderNewer