Working on a decision point in Flexscript I wanted to use a modulo math operator like I can within Excel. I started tinkering with this:
if (current.labels.assert("roundRobinVal", 1).value % 2) == 0) {...then do stuff...}
But no matter what I did the % did not seem to behave like I anticipated.
I then found Math.fmod() and made this:
if (Math.fmod(current.labels.assert("roundRobinVal", 1).value, 2) == 0) {...then do stuff...}
and it worked perfectly.
I am incrementing the roundRobinVal after the if().
I also don't understand the ", 1" in the latter portion of the .assert().