Created
September 18, 2012 04:00
-
-
Save paddykontschak/3741177 to your computer and use it in GitHub Desktop.
invitation
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
// define variables | |
var luisStatus; | |
var karinaStatus; | |
var karinaLocation; | |
var today = "Sunday"; | |
// Check Karina's status and today's weekday | |
if(karinaStatus == "free" && today == "Monday") { | |
// if Karina is free and today is Monday, change Luis' and Karina's status | |
luisStatus = "Dining with Karina"; | |
karinaStatus = "Dining with Luis"; | |
} | |
// recheck Karina's status and today's weekday | |
else if(karinaStatus == "free" && today == "Tuesday") { | |
// if Karina is free and today is Tuesday, change Luis' and Karina's status | |
luisStatus = "Dining with Karina"; | |
karinaStatus = "Dining with Luis"; | |
} | |
else { | |
// wait | |
// verify today's date and Karina's location | |
if(today == "October 7th" && karinaLocation == "Monterrey") { | |
// Check Karina's status | |
if(karinaStatus == "Call Luis") { | |
// change Luis' status | |
luisStatus = ":)"; | |
} | |
else { | |
// change Luis' status | |
luisStatus = ":("; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
English translation of gist:3734813