Created
October 19, 2010 22:43
-
-
Save tyage/635299 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
function B() { | |
var x; | |
if (s) { | |
x = 0; | |
} else if (w) { | |
x = 14; | |
} else { | |
x = 7; | |
} | |
return r < 20*(x+t); | |
} | |
function E() { | |
return mostWarm < 10; | |
} | |
function ACD() { | |
switch (true) { | |
case mostCold > 18: | |
return "A";break; | |
case mostCold > -3: | |
return "C";break; | |
default: | |
return "D";break; | |
} | |
} | |
if (!B()) { | |
if (!E()) { | |
ACD(); | |
} else { | |
return "E"; | |
} | |
} else { | |
return "B"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment