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.

tag group write, only different data
#2
Code:
function tagcheckwrite(tag, value)
  local objects = grp.tag(tag)
  for _, object in ipairs(objects) do
    if object.data ~= value then
      object:write(value)
    end
  end
end

tagcheckwrite('test', false)
Reply


Messages In This Thread
RE: tag group write, only different data - by admin - 05.12.2016, 13:53

Forum Jump: