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.

Dealing with objects with tag
#6
This function replaces last part of the group address with the last part value + 100.
Another option for this is to split the address into parts and then join back:
Code:
parts = event.dst:split('/')
parts[3] = tonumber(parts[3]) + 100
addr = table.concat(parts, '/')

log(addr)
Reply


Messages In This Thread
Dealing with objects with tag - by khalil - 18.04.2022, 10:51
RE: Dealing with objects with tag - by admin - 19.04.2022, 06:58
RE: Dealing with objects with tag - by khalil - 19.04.2022, 07:58
RE: Dealing with objects with tag - by khalil - 19.04.2022, 08:32
RE: Dealing with objects with tag - by admin - 19.04.2022, 08:02
RE: Dealing with objects with tag - by admin - 19.04.2022, 08:49
RE: Dealing with objects with tag - by khalil - 19.04.2022, 09:11

Forum Jump: