dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: greater than and less than

  1. #1
    Registered User
    Join Date
    Mar 2001
    Posts
    46
    whats the easiest way of evaluating if a variable is greater than and less than 2 set figures.

    ie
    if (variablea) = more than 0 and less than 10
    do this

    Is a stoopid problem cos was sure i knew how to do this.

    cheers for ya help

    3quid

  2. #2
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    try this:

    Code:
    if(variablea > 0 && variablea < 10)
    {
        do this...
    }
    /Mirandir

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