If newDonation <= 0, then highestDonation = newDonation. Since you're comparing whether newDonation is greater but not equal to highestDonation, the condition evaluates to false.
Type: Posts; User: SunshineInABag
If newDonation <= 0, then highestDonation = newDonation. Since you're comparing whether newDonation is greater but not equal to highestDonation, the condition evaluates to false.
You have a few ways to do this, so start by breaking the problem into small steps. First, you have to get the values of the donations. If you have a lot of donations, it can be very time-consuming...