The global.set/get is very useful, but is there a global.delete function? I have some global values I don’t need anymore.
The same goes for tag. Can i remove tags that I don’t use anymore?
The global.set/get is very useful, but is there a global.delete function? I have some global values I don’t need anymore.
The same goes for tag. Can i remove tags that I don’t use anymore?
It looks like this may delete a value:
global.set('name', undefined)
This will work, but if by mistake komma’s are in the name this function will not work anymore.
Is there another way to get these tags from the system ?
I have names like [Kitchen Light, false, true, value]
This works fine:
// Create Tag
log('Creating tag Kitchen Light, false, true, value ...');
await tag('Kitchen Light, false, true, value', 'SomeNewValue');
await tag('[Kitchen Light, false, true, value]', 'SomeNewValue');
// Wait 10s
for (let i = 0; i < 2; i++) {
log('.');
await wait(1000); // in milliseconds
}
// Delete Tag
log('Deleting tag [Kitchen Light, false, true, value] ...');
await tag('Kitchen Light, false, true, value', null);
await tag('[Kitchen Light, false, true, value]', null);