Padding with leading "zeros" - trouble with function

Here are screenshots:

And here is test file (same as above, stripped down a little):

Test padlist minimal.tbx (140.8 KB)

Function called from stamps. padlist() function at /Hints/Library/My Functions.

Hey there, check out the video library. We’ve done several meetups on this topic in the past. I’ve also created a 5Cs library for this in my school: 5Cs TBX Glossaries, Indexing, and Media Numbering with Tinderbox | 5Cs.