Creating a counter

I am trying to create a counter variable. I have LoopCount and FileCount. FileCount gets set to 100 in my test case. In the loop I have, I am using: Set Variable to Calculation: %LoopCount%+1

Then I have Display text: %Variable%LoopCount%/%Variable%FileCount%

I’m trying to show 1/100, 2/100 etc.

Anything obvious that I am doing wrong?

Thanks,

Jon

Hey Jon,

Hard to say without seeing your macro.

-Chris

See Text Fields on the wiki.
In a calculation, you do not use Text Tokens, so no percent characters…

Set Variable LoopCount to Calculation: LoopCount+1

That makes sense. All working now thanks. :smile: