I have a mechanism that works and takes the data from Excel, which is made up of two columns and two rows.
One column represents the price of the product.
I want to add up the sum of the two products.
I use for each and make an assign there and put the amount in the P_Amount variable and want to put in an additional assign the total amount into a variable that will contain the total amount TotalProductsAmount
But every time the loop runs this variable is reset.
How can I perform this?
Hi @mironb ,
I believe if the reset of the value happens, it would mean that the variable is only available within that Scope, Try Changing the Scope of the variable to a Outer/Higher Scope and then Check.
Also, Do also show the For Each as that is the main part of the problem along with the Assign statements.
Let us know if the changing of the scope doesn’t fix the issue.
1 Like
@supermanPunch
Thank you very much
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.