Hi there, I'm not too good with tables and I am trying to figure out how to get the last value in the table? I already have a script that sets the table up. Basically I'm trying to get the last value from the table and set a text box to say the value that is displayed. The table is full of strings. Thanks :)
Table name is "Stations"
Just use the unary operator, #
.
local t = {"a","b","c","d","e"} print(t[#t]) --> "e"