Hi there,
I am sorry, I had been playing with the code before I pasted it in, you're right, it would return the first from the code I pasted.
I actually got around it by finding a function called "MaxInArray" and using along with a another case statement, so no loops are used now.
I will mark...