18.10.2021, 14:33
Something like this
Code:
text='ARMED'
myobjects = grp.tag('ALARM')
sum = 0
for _, obj in ipairs(myobjects) do
if obj.value == text then
sum = sum+1
end
end
log(sum)
------------------------------
Ctrl+F5
Ctrl+F5