I've always done that in (1.0) scripts by doing: ...
# suitescript
b
I've always done that in (1.0) scripts by doing: if (srchResults) { //codeblock }