Closed hat071af closed 9 months ago
Upon researching this more, it appears to only be comparing the first two numbers in the list.
If that's the case, please upgrade this to a suggestion to implement a more robust min and max formula.
The min function was receiving the array of numbers but only evaluating the first two. I've changed this to a loop through every number in the array. I've also applied this to the max function which worked the same.
As the title says, the min function doesn't seem to work most of the time, although it is consistent in whichever error it is making.
For example, here's a debug 4 output where the first two checks output the wrong minimum while the third output the correct one:
And this is the same script but with different variables where none of the three is correct.