18.08.2015, 06:04
You can make it a little bit smaller by replacing this:
With this:
If you need AND instead of OR you can do this:
Code:
if (a > 0) then
grp.write(myobject, true, dt.bool)
else
grp.write(myobject, false, dt.bool)
end
With this:
Code:
grp.write(myobject, a > 0, dt.bool)
If you need AND instead of OR you can do this:
Code:
grp.write(myobject, a == #myobjects, dt.bool)