give a string a minimum length of 3 digits

0
I have a string that as a minimum value of 000 and maximum of 999, but when it supose to be 001, it gives me 1, how can I set the length to 3 digits always?
asked
1 answers
1

You can use the Java action “StringLeftPad” from the Community Commons module; set “value” to your string, “amount” to 3 and fillCharacter to “0”.

answered