Menu
I can’t seem to find a way to get the maximum value of an array with an unknown quantity of variables in it. generally you’d write something like this:
tempmax=Math.max(ptotal[0],ptotal[1],ptotal[2],ptotal[3])
but that array ‘ptotal’ can range from having an array length of 1 to 6.
Is anyone able to help me out here. thanks