<@U6VBKMYS1> As per my understanding, you want to ...
# suitescript
p
@lewisdd As per my understanding, you want to check whether the search used in the code returns some result or not. I prefer the following code: if (_logValidation(searchresult)) { // your code } Note : _logValidation is simple function which make sure it has some result values. A function code is as follows: function _logValidation(value){ if(value != null && value != undefined && value != '' && value != 'NaN') return true; else return false; } OR you can simply use if(searchresult) { //your code }