Would this work: `var environment = nlapiGetConte...
# suitescript
d
Would this work:
var environment = nlapiGetContext().environment;  if (environment === 'SANDBOX') {  //do stuff }