An array creates a number of X elements and gets them filled with different numerical values. I'm trying to set up a for-each loop that compares the current value with the next coming element. If I can manage to compare X element 0 and 1, I could from there easily save the value of X:0 to a global variable and then transfer that value to a new insert at the back of the array. In this way I believe a single cycle of sorting could be done in order to numerically sort the values from the front in a descending order.
How do I make an array comparison of element X:0 and X:1 where X:0 is the current value ?
+ SpeedArray: Current value
Would a while loop be preferable and therefore rather compare only X:0 to every other X element? In that case I assume the "SpeedArray: Current value" event wouldn't work. What would I use then?
I'm curious to see some array solutions. I'm new to the whole array concept.