Logic Machine Forum
personal javascript - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: personal javascript (/showthread.php?tid=2997)



personal javascript - Frank68 - 19.11.2020

Hi

In this code for page change
Code:
$(function(){
  if (typeof objectStore !== 'undefined') {
    var id = Scada.encodeGroupAddress('32/1/50');

    objectStore.addListener(id, function(object, type) {
      if (type == 'value') {
        showPlan(216);
      }
    });
  }
});
 is it possible to execute the action only when the value is increased?