Strings resets

Hi i have a for each loop that performs several tasks. It also looksup a value in a data table. I then have a string that assisn the value it gets from the data table to another string at end of the for each loop, then at the beginning of the for each loop i have a flow decision checking if the “previous string” = to current string if so it shall skip if not proceed. Problem its that the “previous string” resets ( going into null each time) when its been assigned a string at the end of for each loop…

give a try on on setting the string variable to a higher scope e.g. top xaml level


If you create the variable inside the For Each loop then by default it is accessible within the For Each Body, So try to give max scope to that variable

Hope this may helps you