Round to nearest 5
I am trying to take an input value and round it up to the nearest whole 5 and then use that new value in an IF formula. However there is some detail I am getting incorrect as when the rounded value is outside of the parameters it returns the result anyway. Please where did I go wrong.
var SST = Number(this.getField("SST").value);
var SLT = Number(this.getField("SLT").value);
var SCT = Number(this.getField("SCT").value);
var Ref = this.getField("Ref").valueAsString;
var RSST = Number(Math.round((SST/5)*5).value);
if(Ref != "R410A") event.value = "";
else if (RSST = 50 && SCT == 120 && SLT == 50 ) event.value = 150-SCT;
else event.value = "";
Thank you.