How can I make a counter in my program?

Hey, I want to make a counter which increments after every action performed inside if statement. Firstly I initialised the value of counter from excel sheet using constant value (value= ${element[1]}). Now I want to increment from this only like (value= ${element[1]} +1 ). I am using const action for this, i think its not working. please tell me
Doc1.docx (180.3 KB)

Hi @vinayak you need to add 1 to the variable “counter” itself using Expression action, and it needs to be a Number variable.

So you need to assign a value from the table to a string variable

then reformat the string variable to a Number

and then add 1 to the counter using Expression action


Thanks mam, i also tried in this way only and it worked.

1 Like