25.08.2020, 14:29
Like this:
Code:
objs = {
'1/1/1',
'1/1/2',
'1/1/3',
}
sum = 0
for _, obj in ipairs(objs) do
if grp.getvalue(obj) then
sum = sum + 1
end
end
grp.checkwrite('1/1/4', sum)