Counting

I am trying to make a counter and it seems I cannot get it to work properly… I would like a user to make an entry of whatever value they would like and it would number accordingly 001-020 etc. It seems that if counter > 10 then is not what I am looking for.

I was able to achieve this in applescript with this:

repeat with theIncrementValue from 1 to theNumber
if theIncrementValue is less than 10 then
set myValue to “0” & theIncrementValue
else
set myValue to theIncrementValue

Thoughts?

For this specific function, look at the LR under Format.

S = Format( n, "000" )

Thank you!

Pretty dang easy… I was making it way harder than it should have been.