Perhaps, but initializing "middle" to (any) one of the input values should work fine too
I know it may sound like Elysia is rude [he/she may even BE rude], but correctly indenting the code is part of writing good code, so you should really try to understand:
I am trying to get the info you are providing, but I am letting the rude comments of Elysia interfer.
Thanks again,
Mary Pat
How to make the editor indent the code correctly and/or why the code doesn't look correct when you post it here.
The reason indentation is important is that it's showing how the if-statements relate to the actual code.
Also, I don't actually think you need if-statements "inside each other" (nested if's) to solve this problem.
--
Mats