if p1 point is disabled or some error else, will occur error,and the next javascipt can not execte, how to resume execute next code when one line script occur error.
I would think you could first do a check to make sure the point has a value before you execute the command. This might be a question for one of our developers and I will see what they think.
a typical error is one datapoint which in context var list be disabled, or be delete in other place,this datapoint var will occur ReferenceError: "p1" is not defined, and the next script will not execute.
I have tryed to use typeof p1 !=undefined or p1!=null to check first , but it seem like don't work.