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

Question

Question

Text length function on a token

asked on November 8, 2016

I am using the Text Length function on a token, which is correctly returning the length of the string as a result of a DB look up. When I perform a comparison in a conditional branch with this length vs a number, the comparison is not working.

So for example, if the token value is stored as 9, a comparison with greater than 10 is resulting in true, which is obviously incorrect.

Thanks!

See the example in the setup of the condition and a sample result:

 

1 0

Replies

replied on November 8, 2016

Please tag your token as number instead of string. The default for Assign Tokens is to create string tokens.

1 0
replied on November 8, 2016

Have you used Track Tokens to Verify what the token values are during the process?

Did you use the Token Calculator to get the "stringlength" or use another method?

Have you tried setting the Assigned Tokens Tag to be a number (it defaults to String)

0 0
replied on November 8, 2016

Thank you all for your replies! I've never noticed the token tags before and changed it to format as a number and the comparison then worked.

Thanks again!

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

Sign in to reply to this post.