-
something weird happens when i try to else if statment.
i tried to experiment with multiple conditional
if/else statment.at first i tried this expression
T=Math.floor(time);
R=thisLayer.rotation;
if(T>=3){[300,300]} else if (T>3&&R>10){[500,500]} else {[100,100]}
its seems to be ok except that im not able to get the “[500,500] even when time is bigger then 3 seconds and
and rotation is bigger then 10and then i tried to reverse the expression:
T=Math.floor(time);
R=thisLayer.rotation;
if(R>10&&T>=3){[500,500]} else if (T>3){[300,300]} else {[100,100]};
and its works. any ideas why?