max(a, b);
Return the largest value.
Can also take any number of arguments, or a table.
Arguments
a
The first valueb
The second valueReturns
number
The largest valuemax(2, 5); -- returns 5
max(2, 5, 7); -- returns 7
max({ 2, 5, 7 }); -- returns 7