Initialize $mingrade before your loop to either something larger than the largest expected value, or the first value you encountered.
Hope that helps.
In reply to Re: Finding Minimum Value
by atcroft
in thread Finding Minimum Value
by jimmy88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |