Amol Bhandari SJ - 1 year ago 98

ActionScript Question

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

`()+1`

Answer Source

My only guess would be (a bit simplified):

```
num = Math.ceil(num);
if(num % 2 == 0)
num++;
```

Basically making sure the number is always uneven