we have a map/reduce if certian condtions are met...
# suitescript
s
we have a map/reduce if certian condtions are met we want to go to the next iteration like continue in JS
e
Next iteration of what?
In your
map
or
reduce
stages, you can
return
at any point to stop
s
thanks
s
another consideration is you can use map() to decide what does (and does not) make it to a reduce() stage.
☝️ 1
s
yes but since this is more of error handling and only occurs unoften there is no need for adding the overhead for the extra stage
s
the default behavior for map() is to continue processing in the face of unhandled exceptions.
so it should continue by default.