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.

save the value of a variable in the LM
#6
You can use storage for any kind of data. For example you can store a Lua table there, where each table key is year-month pair:
Code:
key = os.date('%Y-%m') -- YYYY-MM format
value = 123 -- current value

values = storage.get('values', {})
values[ key ] = value
storage.set('values', values)
Reply


Messages In This Thread
RE: save the value of a variable in the LM - by admin - 09.05.2019, 06:16

Forum Jump: