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.

Get value inside telegram message
#1
Hi,

How can I get my value with my telegram message?

if value == 2 then
  message = 'Varmeanlegg: Alarm - I want the value here'
end
Reply
#2
Try this:

Code:
value = event.getvalue()

if value == 2 then
message = 'Varmeanlegg: Alarm - ' ..value
end

log(message)
Reply
#3
value == event.getvalue()

must be 

value = event.getvalue()
Reply
#4
(23.10.2023, 18:01)Erwin van der Zwart Wrote: value == event.getvalue()

must be 

value = event.getvalue()

My bad. Fixed, thanks!
Reply


Forum Jump: