That won't work for a start as point1Values will be an array, secondly, there is no such thing as an 'if' attribute in HTML. AngularJS supplies an "ng-if"but that's different again and works with angularJS variables.
I was stating under the datapoint properties you can set min and max permitted values in the system I don't have the latest version of mango so i'm unable to give you a screenshot.
But if you look under datasources -> points -> and edit the respective point you can make it ignore when you have 0s coming in from system resets.
If however that is not possible and you need those zeroes then a function is required to filter them.