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.

Store value
#1
Hello, 

I have been testing some basic scripting with the use of helpers on the left. I tried to make a script to store a value from 0-100%, and get that value after 10 seconds. But on the storage.get value I dont recieve any updated value from the storage. I see that in the description there must be a specific value? Does that mean that I cant store a value between 0-100? 


Code:
-- set storage variable myobjectdata to a specified value (e.g. 0-100%)
storage.set('32/1/1', 0-100)
-- wait for 10 seconds
os.sleep(10)
-- mydata will be set nil when data was not found
Forrigetime = storage.get('32/1/11')
Reply


Messages In This Thread
Store value - by AlexD - 24.10.2023, 07:44
RE: Store value - by admin - 24.10.2023, 07:49
RE: Store value - by AlexD - 24.10.2023, 08:19

Forum Jump: