if reset_after_foreach is true: resets the counters after each foreach so the next iteration starts from the beginning
if reset_after_foreach is false: resets the counters only when the whole map was iterated
whether the last foreach call was interrupted using break (true) or not (false)
See Implementation
if reset_after_foreach is true: resets the counters after each foreach so the next iteration starts from the beginning
if reset_after_foreach is false: resets the counters only when the whole map was iterated