I have a Client script that iterates through the sublist of line items in a quote (estimate) and looks for specific class codes on the items. Whatever items satisfy multiple if statements within the function have some pricing information set for those items. The problem I am running into is my exception handling. Currently the "} else {" statement is just "return;" which is causing my script to break in the middle of the iteration. When the script runs into a line item that does not satisfy the previous "If (class == #)" it just returns and the script is stopped. Can someone help tell me a way to force the function to just skip an item that doesn't satisfy the requirements and continue through the list? Pertinent code below with bolded section where I know the problem lies:
function cs_Markup() { alert('Item Markup Clicked'); console.log('cs_Markup invoked'); for (var x = 1; x &lt;= nlapiGetLineItemCount("item"); x++) { var product = nlapiGetLineItemValue("item", "class", x); ... if (product == 8){ ... } else if (product == 9){ ... <strong>} else { return; }</strong>