2 Replies Latest reply on Nov 27, 2006 2:31 AM by Leegee3

    Displaying different messages on 3 different conditions

    Leegee3 Level 1
      Hey people. My problem is this...

      I have done a simple quiz in Director MX 2004 based on 10 questions. If the user gets above 80%, it displays one message, if they get below 20% it displays a different message and if they get between 20 and 80% it again displays a different message, however im having difficulties.

      This is the Lingo I used...

      on beginsprite me
      member("Field_TScore").text=String(Score*100/10)
      if member("Field_TScore").text >=80 then
      gSetGood=true
      else if member("Field_TScore").text >=20 and member("Field_TScore").text <=79 then
      gSetOK=true
      else
      gSetBad=true
      end if

      end

      If they get above 80% it shows gSetGood and gSetBad. Its obviously just a little part of the code that is wrong.

      Can anyone point out whats happenin, thanks..

      Lee