Skip to content

Instantly share code, notes, and snippets.

@TylerPachal
Last active September 4, 2020 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TylerPachal/086d9e4fd5c553fdf19574ce9523cf52 to your computer and use it in GitHub Desktop.
Save TylerPachal/086d9e4fd5c553fdf19574ce9523cf52 to your computer and use it in GitHub Desktop.
# Assign the result of the if/else statement to a variable
flag =
if foo == bar do
# If the condition is met, change the flag
false
else
# If the condition is not met, return flag to keep the value the same
flag
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment