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.

Line Break
#1
Hi!!

Im trying to write on a 255byte string all my alarms but line break doesn´t work. Any Idea?

The code is:

Code:
res = {}
objs = grp.tag('alarm')

for _, obj in ipairs(objs) do
  if obj.value then
        grp.update('33/1/21', "¡¡¡IMPORTANTE REVISAR LAS ALARMAS!!!") 
    res[#res + 1] = '¡ALARMA! - ' .. obj.name
  end
end

text = table.concat(res, '\n')

Thanks!
Reply
#2
Some extra CSS is needed, see this: https://forum.logicmachine.net/showthrea...12#pid6412
Reply
#3
Thanks so much!!!
It works
Reply


Forum Jump: