Amol Bhandari SJ - 8 months ago 65

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

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

Source (Stackoverflow)