It’s math so I know it can be done, I’m just not sure how.
You can see the script I have now here:
[URL=”http://volstatecup.bravehost.com/groupA.js”]http://volstatecup.bravehost.com/groupA.js
Right now I would have to manually adjust the table rows so that each team is in the right spot. What I want my script to do is calculate the places for me.
First place is the team with the most points (pts#). If there is a tie, largest goal difference (gd#) wins. If there is still a tie, most goals for (gf#) wins.
Once I figure out how to rank the teams I’ll have the first place team info switched to A (e.g., var ptsA = pts2), and then I’ll change the vars in the output section.
I’m tired and I hope this makes sense to someone that’s willing to help.
Thanks in advance,
GTWeasel