Last active
August 29, 2015 14:14
-
-
Save chriswallace/7d97544ce538794a722f to your computer and use it in GitHub Desktop.
Formula to determine whether or not to tip on take-out food.
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
/** | |
* The ballin' equation. | |
*/ | |
function tip_or_not(){ | |
if ( ballin() ) { | |
return true; | |
} | |
return false; | |
} | |
function ballin(){ | |
global $cash; | |
if( $cash >= 100000 ){ | |
return true | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment