13.07.2022, 06:02
Use this:
Code:
tagobjs = grp.tag('tag_name')
maxtime = 0
for _, tagobj in ipairs(tagobjs) do
updtime = tonumber(tagobj.updatetime) or 0
if updtime > maxtime then
obj = tagobj
maxtime = updtime
end
end
log(obj)