I need to check if a string has 11 digits.
In case it has not 11 digits I need to insert at the beginning of the string as many zeros as to complete the string for having 11 digits.
Examples: 555110988 β 00555110988
5110988 β 00005110988
Thank you so much,
Hi @CamiCat - you can achieve this by changing the format when outputting your number as a string. So it would be YourNumber.ToString(β00000000000β).
If it is already a string variable I would convert it to a number first, then output to a string as as shown above. I would recommend converting to a number if it isnβt one already as that will be your input validation step.