You are viewing limited content. For full access, please sign in.

Question

Question

Add leading 0

asked on April 5, 2019 Show version history

Hello,

 

I am trying to add a leading 0 to a number, however I only want to add 1 leading 0 to a given number.  For example if i have 2 I want 02, 22 - 022, 222-0222.  Is there a way to do that with a single token dialogue? or would I have to use a routing decision to determine each type?

Thanks for your help.

Darren 

0 0

Answer

SELECTED ANSWER
replied on April 5, 2019

It's not clear to me what you're trying to achieve. For 22 - 022, are you starting out with 22 - 22 and only want to add a zero to the second number? Or is that shorthand for "22 should turn into 022"? If the latter, why not just add a 0 in front of your token value given that it looks like there is no length restrictions, just a requirement that all values start with 0?

1 0

Replies

replied on April 5, 2019

Hi Miruna,

I was trying to use shorthand, sorry for the confusion.

Simply adding a 0 to the token will absolutely solve the issue, I should have seen that.

Thank you

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.