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.

grp.settags usage
#1
Hi,

grp.settags overwrite existing tag name in group as I found out. Is possible add or remove new tag to existing one, not delete it?

My variant overwriting existing tag name..

Code:
groupvalue = event.getvalue('39/1/10')
if groupvalue == true
  then
  grp.settags('2/0/3', 'lightcntr')
else
  grp.settags('2/0/3', '')
    end

BR,

Alex
Reply
#2
Hi,

Yes you can, see:

https://openrb.com/docs/lua.htm#grp.addtags
https://openrb.com/docs/lua.htm#grp.removetags

PS: event.getvalue() does not need a grp address as it fetches the event itself, you only need to do that with grp.getvalue('x/x/x')

BR,

Erwin
Reply
#3
Ervin,

thank you for explanation!

BR,

Alex
Reply


Forum Jump: