<@U5TNEF7FW> something like this ``` var singularM...
# suitescript
j
@karlenigma something like this
Copy code
var singularMsg = 'There is one item where there is no weight.  This item cannot be received until the weight is added.';
var pluralMsg = function(n) { 'There are ' + n + ' items where there is no weight.  These items cannot be received until the weight is added'; };
function saveRecord() {
	// ...
	return window.confirm(lineCount === 1 ? singularMsg : pluralMsg(lineCount));
}