T Bart wrote:...If the user enters a value of 240 or greater, the message in the "else" statement is displayed as desired but the value still ends up in my array...
Welcome to the Ranch!
If the "else" block is executing, then I don't see how the "if" block could. Is it possible you have another line of code somewhere that's adding the value to the array? What happens if you comment out the assignment (line 4) in the code you posted? Does the value still get added?
T Bart wrote:I found it. Lines 232 and 233 were outside the if-else statement and were adding to the total values without any evaluation. I moved those two lines of code to their respective places within each if-else statement and now everything is working properly. Thanks for your assistance!
Ah... So it was adding to the cumulative value, but not to the array, right?