Amol Bhandari SJ Amol Bhandari SJ - 6 months ago 39
ActionScript Question

Need help on decoding ActionScript syntax

I need help on decoding below syntax line:

(((math.ceil(num) % 2) == 0) ? (num = math.ceil(num++)num = (()+1)math.ceil()) : (math.ceil(num = math.ceil(num))));

I got the SWF script decoded using tool and found this line which our team could no decode further. specially
. I am trying to convert to javascript.


My only guess would be (a bit simplified):

num = Math.ceil(num);

if(num % 2 == 0)

Basically making sure the number is always uneven