7 Replies Latest reply on Jul 20, 2007 5:16 AM by Mark_Snyder

    Very, very rusty...simple comparison

    Mark_Snyder
      I'm creating what I thought would be a simple number-picking app.

      Four text members filled with random(50)...I don't want duplicate numbers, so I have tried every which way of writing this code that I can think of, but nothing is working for me. I haven't used Director in a long while and my Lingo skills have dulled significantly. If anyone wants to see my latest version of my crappy, verbose script, here is a smaple of one of four handlers I was experimenting with:

      on compareResult4
      if member ("result4").text = member ("result3").text then
      put random(50) into member"result4"
      go to the frame
      if member ("result4").text = member ("result2").text then
      put random(50) into member"result4"
      go to the frame
      if member ("result4").text = member ("result1").text then
      put random(50) into member"result4"
      go to the frame
      else
      if member ("result4").text <> member ("result1").text then
      nothing
      if member ("result4").text <> member ("result2").text then
      nothing
      if member ("result4").text <> member ("result3").text then
      nothing
      end if
      end if
      end if
      end if
      end if
      end if
      end

      Any ideas, thoughts or suggestions welcome!!!
      Thanks in advance!
      MS