How to find lowest number in int array?

Hi! I’m wondering how to find lowest int number in array by code. Does someone have some magic script for this at hand?

All you do is set a test int to its maximum number to store the lowest result.

Then use a loop and cycle through the array. Test if the current loop element is less than the stored reference. If so, set the reference to the new lower value. By the end, you will have the lowest number.

Hope that helps =)

Thanks a million Devero. I’m going to translate your instruction to code. I’ll let you know if I’ll manage to do this… or not:)

And it works ?