4 Replies Latest reply on Mar 22, 2010 10:48 AM by kglad

    comparing 10 variables and listing top 3

    cre8ive1974 Level 1

      I am making a scoreboard.  On this scoreboard I will have 10 different scores.  I want to compare the 10 scores and list the top 3 scores in another location.

      I am unsure howto write this.

       

      I was thinking at first

      if(score1>score2&&score1>score3&&score1>score4 etc.....){

      some function

      }

       

      but this will only give me the top score in the group.  I would like to find the top 3 scores, and then list them.

       

      Any suggestions?

       

      Thanks!

      D