Hello,
I am trying to calculate a new property Risk Priority Level (RPL).
I derived the property through customization in Current Design Control (derived FMEA and SWA only).
Here is the script -
var result;
var OCC = +self.element.occurence;
var DET = +self.element.detection;
var SEV = +self.failureCause.failureMode.failureEffects[0].element.maxSeverity;
if(SEV>=1 && SEV<=10 && OCC=1) {
result = 3;
} else if (SEV>=1 && SEV<=9 && OCC=2) {
result = 2;
} else {
result = 1;
}
result;
I am getting an error -
Failed to execute Java Script: Invalid assignment left-hand side.
Can someone help what does this error mean? and how can I rectify it?
Thanks,
Kepin