I have few time scripts that are supposed to run several times a day, at a specific time.
Actually the time is trigged inseide the LUA code, but I was looking for a smarter way to drive it...
So I was thinking to use a table inside a variable... but here I come with a problem using such information in LUA:
first: My script is supposed to run at hour 7, 11,14,17,21 (munite is fixed at 00), so I create a string global variable named RunOnTime with values 7, 11, 14, 17, 21
in LUA I don't know how to convert it into an array:
Code: Select all
tstArray = { uservariables['RunOnTime'] }
Code: Select all
tstArray = {7, 11, 14, 17, 21}
how do I convert strings into tables?!

thanks
ciao
M