Forum Discussion
endor_force
6 years agoNew Contributor III
Here is an alternative solution if you need something that works for any value.
Example with padding with six zeros:
I have chosen to store the padding value in pipeline params as pad6 = "000000"
$value.toString().length < 6 ? _pad6.substring(0, _pad6.length - $value.toString().length) + $value.toString() : $value.toString()