This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Search all Objects
#2
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
Reply


Messages In This Thread
Search all Objects - by sjfp - 18.10.2021, 13:55
RE: Search all Objects - by Daniel - 18.10.2021, 14:33
RE: Search all Objects - by sjfp - 18.10.2021, 15:22

Forum Jump: