Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

If statement operators in flash

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • If statement operators in flash

    Hello,

    Is there a way to check from a a range of a number is true, for example i have an event in actionscript that triggers when Score >= 9500 however it keeps triggering that if statement because my score keeps increasing above 9500, how can i either stop it from triggering or check withing a range of numbers for example.
    Code:
    if ( Score == 9500-10100 ) 
    {
    
    //do something cool
    
    }
    I know what i did is probably wrong but its how i can explain it

    Thanks

  • #2
    if ( Score => 9500 && Score =< 10100 )

    my => might be backwards i prefer the faces

    Comment


    • #3
      thanks that helped : ]

      Comment

      Working...
      X