Last active
September 4, 2020 16:08
-
-
Save TylerPachal/6960705818fe465a8fee283cd3c93aaa to your computer and use it in GitHub Desktop.
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
# Do not do this in Elixir | |
flag = true | |
if foo == bar do | |
# Anything that happens inside this if block will have no impact | |
# on the outside of this if block. | |
flag = false | |
IO.inspect(flag) # false | |
end | |
IO.inspect(flag) # true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment