30.08.2017, 12:37
Hello, I'm having difficulties with a simple script that looks something like this:
value = event.getvalue()
day = os.date("%w")
if (value == true and day == 1) then
~do something
end
It seems like the script cannot read the day variable, when I tried doing something like this it actually works, but I'm curious if there's any simple solution to this:
value = event.getvalue()
d = os.date("%w")
grp.write('1/1/1', d)
day = grp.getvalue('1/1/1')
............ (script continues as above)
1/1/1 object can be 2-byte unsigned integer for example, anything basically.
value = event.getvalue()
day = os.date("%w")
if (value == true and day == 1) then
~do something
end
It seems like the script cannot read the day variable, when I tried doing something like this it actually works, but I'm curious if there's any simple solution to this:
value = event.getvalue()
d = os.date("%w")
grp.write('1/1/1', d)
day = grp.getvalue('1/1/1')
............ (script continues as above)
1/1/1 object can be 2-byte unsigned integer for example, anything basically.