Increment from "001 to 010" - Design Script?


#1

I am using the design script “1 …10;” to make a list that counts from 1 to 10… Is there a script or syntax that allows for counting from “001 to 010” making it a 3 digit number?

Thanks!


#2

Can the output be a string? If so, the String.PadLeft node can be used to fill in any “missing” zeros on the left side after converting your number to a string.

ZeroPaddingIntegerGraph

 

 

 

 

 

 

 

 

 

 

 

 

 

This blog article has more detail.

 


#3

Hi Jefrey,

Try this:


#4

You guys rock! THANKS!


#5

Oops! It looks like I and David Replied at the same time:-). David your solution is good