I have the following simple gateway tag change script:
if not initialChange: currentValue = event.getCurrentValue().getValue() previousValue = event.getPreviousValue().getValue() ss = system.tag.readBlocking(["[New]/Trigger"]).value if currentValue == 0 and ss == 1: system.tag.writeBlocking(["[New]/BatchCount"],[previousValue])
The problem is that no matter what value the memory boolean tag “Trigger” has , the script “works”, i.e. the previousValue is written to tag “BatchCount”. What is the reason?