var createdfrom = nlapiGetFieldValue('createdfrom'...
# suitescript
n
var createdfrom = nlapiGetFieldValue('createdfrom'); nlapiLogExecution('DEBUG', 'Created From Value', createdfrom); if (createdfrom!=null) {....}