Reorganising Numbering in Lists

I am creating a script which changes door numbers based on room numbers. I am trying to have the ground floor room numbers ordered like 001, 002, 003…009, 010, 011, instead of 009, 0010, 0011 … if that makes sense?

I have the first list from 001-009, but how can I remove 01-09 in the second node? I know how to combine the lists after and how to feed it back into the script, I am just completely stuck on this part. The screenshot might explain it a little better.

Thanks!

Just use PadLeft with “0” instead. This will give you 0s in front of your numerals up to a given length (3 in your case).

2 Likes

Ahh ok thank you!! Didn’t know that was a node :sweat_smile: