Updating other records on POST

@patrick or @Teodor could you take a quick look at this? In my last post with an image, the Set Value in the highlighted section is not keeping its value from one iteration of the repeat to the next. Thanks!

Can anyone verify that a Set Value can be updated inside a repeat and the updated value compared in a condition within the same repeat? See highlighted image in pervious post.