Posted By

heathbo on 10/05/10


Tagged


Versions (?)

How to detect if a number is even


 / Published in: ActionScript 3
 

The Modula symbol % will give you the difference between the first and last numbers.

  1. if(currentImageCount % 2 == 0)
  2. {
  3. trace("Its Even")
  4. };

Report this snippet  

You need to login to post a comment.