-
help with switches
I have a problem with a script.
a piece of it goes like this:
10 or 11 = "fall leaves"
12 or 1 = "snow"
4 or 5 = "rain"
Code:
var d = new Date();
var curr_month = d.getMonth();
if var curr_month == 1 then do function()
the function is snow.
i cant get to rain or leaves yet but i know they should work.
but the switch im using doesn't work and i cant pin down the problem.
can someone help me?
-
First thing you need to learn is that java is not javascript, in fact far from it, and while you are asking a javascript question, this is a java forum. For a more helpful answer, Google for a javascript forum and ask your question there. Best of luck.