15.10.2020, 14:51
(18.07.2016, 06:39)admin Wrote: Create an event script attached to 1/1/2:
Code:output '1/1/1' storage_key = 'prev_value' curr = event.getvalue() prev = storage.get(storage_key) if curr ~= prev then grp.write(output, prev) storage.set(storage_key, curr) end
Perfect is good , but if I need to initialize the storage with the current value , neede to create manualy a script to memorize it , is correct ?
Thank's in adavantage