can someone tell me how to make math.min/max ignore a nil value?
I guess it's a stpuid question but I wanna know:
math.min(1, 2, 3, nil value) - Id like the result to be 1 instead of an error call.
the variable I assigned for the math.min calculation most of the time is being faded for the condition isnt met - only if met the variable will return a number, meanwhile though math.min gets calculated.
I circumvented the problem and it does work fine but it feeds up the code lines making them hideous and unclear. I d rather would stick to the math.min thing.
So does anyone know an answer to a stupid question?