personally I tend to prefer checking for the negat...
# suitescript
e
personally I tend to prefer checking for the negative condition and returning early:
Copy code
function doThings() {
  var createdfrom = nlapiGetFieldValue('createdfrom');
  nlapiLogExecution('DEBUG', 'Created From Value', createdfrom);

  if (!createdfrom) { return; }

  // continue processing
}
👍 1