Last active
September 4, 2020 16:18
-
-
Save TylerPachal/086d9e4fd5c553fdf19574ce9523cf52 to your computer and use it in GitHub Desktop.
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
# 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