05.12.2016, 13:53
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)