How to detect if a number is even


/ Published in: ActionScript 3
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. if(currentImageCount % 2 == 0)
  2. {
  3. trace("Its Even")
  4. };

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.