in map reduce script on one iteration what is the ...
# suitescript
s
in map reduce script on one iteration what is the best way to go to next one if certain logic is met like in js
Copy code
continue;
s
just
return
m
Not sure about best practice but what I use is.
Copy code
return;
If you want to record that you skipped you would want to pass on the value then return like.
Copy code
context.write({key: keyvalue, value: 'skipped'});
return;
s
what would the keyvalue be ?
m
That would be up to you...it would probably be the key that was passed in
context.key
. For example if your in reduce and you skip one. You would be able to record the skipped to help in any auditing you need.