- Joined
- Sep 21, 2007
- Messages
- 517
When indexing, instead of using the casual if/then/else, why not incorporate Modulus to increase efficiency. So for example, if the index limit is 12,
. Then we solve for x; the only problem im seeing is that we probably need an if/then statement to reset the previous indexes.
Hope this may be used usefully oneday for Indexing systems rather than only hours of a clock.
JASS:
CurrentIndex + 1 = x (Mod 12)
Hope this may be used usefully oneday for Indexing systems rather than only hours of a clock.