dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: if else statements

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    21
    I would really appriciate any help with a math tutorial I am building. basically I have three input fields. All input fields need to be correct to move to the next answer.
    here is what I have. What is wrong?



    on (release) {
    if (fac1 = 40)
    if (fac2 = 3)
    if (fac3 = 7) {
    var GB = "Congratulations, click the Next button";
    } else {
    var GB = "try again";
    }
    }

  2. #2
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food
    Posts
    3,789
    Code:
    on (release) { 
         if (fac1 == 40 && fac2 == 3 && fac3 == 7) { 
              var GB = "Congratulations, click the Next button"; 
         } else { 
              var GB = "try again"; 
         } 
    }

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