-
how to express “if certain value is among some array than..”?
I want one layer to appear only if the current date is same as one of dates in array.
I tryed:
D = new Date(Date(0));
today = D.getDate() + "/" + (D.getMonth()+1);
vis = transform.opacity;
fullMoon = ["27/3","25/4","25/5","23/6","22/7","21/8","19/9","19/10","17/11","17/12"];if (today == fullMoon)
vis = 100
else
vis = 0;
but it does nothing.. guess == is not rly what Im looking for.