Created
August 19, 2013 13:29
-
-
Save steveshogren/6269103 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
def ifworkday(first, second) | |
if workday(today()) do | |
return first | |
else | |
return second | |
end | |
end | |
x = ifworkday(1 + 1, doOtherHugeCalc()) | |
#when the values are “shown” | |
def ifworkday(2, 3) | |
if workday(today()) do | |
return 2 | |
else | |
return 3 | |
end | |
end | |
x = ifworkday(2, 3) # CALLED BOTH FUNCTIONS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment