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.

Boolean object operations
#3
(25.08.2020, 14:29)admin Wrote: 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)

Thank you so much Admin!  Smile
Reply


Messages In This Thread
Boolean object operations - by davidchispas - 25.08.2020, 14:16
RE: Boolean object operations - by admin - 25.08.2020, 14:29
RE: Boolean object operations - by davidchispas - 25.08.2020, 14:37

Forum Jump: