menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
How would I check a table with numbers for the lowest one?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
How would I check a table with numbers for the lowest one?
Kicklicks3
Join Date: 2010-06-02
Post Count: 469
#183167843
Sunday, February 07, 2016 7:45 PM GMT
I'm a newb to tables so I really don't get how it's possible
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Happywalker
Join Date: 2010-03-05
Post Count: 3672
#183167871
Sunday, February 07, 2016 7:45 PM GMT
math.min(table.unpack(t))
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
cheesecake123456
Join Date: 2009-06-01
Post Count: 1529
#183168012
Sunday, February 07, 2016 7:47 PM GMT
table = {5, 2, 7, 4} val = table[1] for _, v in pairs(table) do if v < val then val = v end end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right