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.

arithmetic on local - error
#2
Use this:
Code:
-- Läs in värdet från Husförbrukningen i Wh
local strHuset1 = grp.getvalue('7/0/22')

-- Räkna av Bergvärmen från husförbrukningen
local strHuset2 = strHuset1 - strBVP

Lua multiple assignment works this way:
Code:
local a, b, c = 1, 2, 3
log(a, b, c) -- a = 1, b = 2, c = 3
Reply


Messages In This Thread
arithmetic on local - error - by sx3 - 16.11.2022, 19:13
RE: arithmetic on local - error - by admin - 17.11.2022, 07:04
RE: arithmetic on local - error - by sx3 - 17.11.2022, 07:15
RE: arithmetic on local - error - by admin - 17.11.2022, 09:08

Forum Jump: