I’m trying to append a running number to a string. When it’s in the single digits, I would like to use a leading zero. Say 01, 02, 03 instead of 1, 2, 3… What’s the easiest way to do get the 01 added? In my attempts the zero is always dropped.
Hi @Zbulo,
The issue arises because you’re working with numbers, and this type of variable indeed automatically trims leading zeros. However, you can treat it as text, which seems to be your goal. Therefore, you could use something like the following: {{toString(0)}}{{1.i}}. Here, you concatenate the string “0” with the number, resulting in the text “01”.
Glenn - Callinetic
3 Likes
Thanks for the quick revelation.
2 Likes