Results 1 to 2 of 2

Thread: array problem

  1. #1
    Join Date
    Feb 2004
    Posts
    7

    Unanswered: array problem

    i'm trying to automatically put weather a team is been religated or not.

    The value is $outcome and the 'relegation zone' starts below the team in 7th place.

    I have tried this but every team get the value S (for safe). It seems like it is just repeating the first value in the array down to the others.

    if ($maxpoints > $pts[6])
    {
    $outcome = R; // if the max points a team can get is less than the team in 7th place they are religted
    }
    else
    {
    $outcome = S; // else the team is safe
    }

    Hope this makes sense..

  2. #2
    Join Date
    Jan 2004
    Location
    Germany
    Posts
    167
    please post some more code... with that little code it is hard to say what is going wrong...
    board.perl-community.de - The German Perl-Community

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •