Convert a numerical value to a string with specific frame padding?

I want a counter to determine which directory is used.

I use a + node with the string of the directory as one input and using As string Node I input a number 4.

However when these are added it becomes:


but I want it to be like this:


also with the \ at the end. Any ideas?

Okay oopss, just put another thing into the add node being a /.

Still can’t figure out the Padding though, I can change it to an integer so I can now get:


but I’d like



FormatValue (String) should do it.

Great! Thanks bjoern.