A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: numbers in between

  1. #1
    Junior Member
    Join Date
    Apr 2003
    Posts
    27

    numbers in between

    Hi!

    Here's what happens:
    i have a variable (x) that is getting a lot of numbers along time. Since 0.0 till 10.0 (for instance) and i need that between numbers 0.0 till 1.0 something happens; between 1.1 till 2.0 something else happens and so on...
    How can i do that?

    Hope you understand me
    Thank you

    HUGO ANDRÉ RIBEIRO

  2. #2
    Senior Member
    Join Date
    Nov 2004
    Posts
    928
    if(x<=1) {
    code here;
    }else if(x>1&& x<=2) {
    code here;
    }

  3. #3
    Senior Member
    Join Date
    Nov 2004
    Posts
    928
    this sort of thing is perhaps what you need

    if(x<=1) {
    code here;
    }else if(x>1&& x<=2) {
    code here;
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center