-
Every 100th
Is there a way that everytime a counter is added 100 to it, that adds 1 to counter without me coding every hundred?
So lets say... Counter1 = 100 -> adds 1 to Other
counter1 = 20000 -> add 1 to other. Without me having to do the all in between 100s?
Hope this makes sense
-
Re: Every 100th
Use a second counter and reset it to 1 every time it hits 100. Add 1 to the first counter and move on.
If Counter2 = 100
Set Counter2 = 1
Add 1 to Counter 1
Is that what your looking for?
-
Re: Every 100th
Yes, that will work. Thank you very much :-D
-
Re: Every 100th
Or you could do
Code:
+Counter1 mod 100 == 0
-Add 1 to other counter
-
Re: Every 100th
-
Re: Every 100th
I always forget about mod. Thanks for the reminder turboferret
-
Re: Every 100th
No problem, mod is your friend <img src="/center/images/graemlins/wink.gif" alt="" />
-
Re: Every 100th
Thank you for finally making me realise the use for Mod! Dear godm it's been pestering me... maybe there are more uses but who cares, I'm happy for once. <img src="/center/images/graemlins/laugh.gif" alt="" />
Is there any explanation for the uses of "Power" and the "bit-wise" stuff too?
EDIT: I just found out what power is myself. I knew what it was, but only the Swedish term for it. <img src="/center/images/graemlins/smile.gif" alt="" />
-
Re: Every 100th
Wikipedia.org has a great article on bit-wise operators, check it out.
-
Re: Every 100th
...You can do bitwise operators in MMF? No way!!! <img src="/center/images/graemlins/laugh.gif" alt="" /> <img src="/center/images/graemlins/laugh.gif" alt="" />
Is there a way of doing bitshifts too? Or, even better, is there a list somewhere of all the operations like pow, mod, and, or, xor, and stuff I would have never known about had I been on this forum? <img src="/center/images/graemlins/smile.gif" alt="" />
EDIT: Oh, I see... they're under the little click-button menus in the expression editor. Shoulda thought to look there ^_^