cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
540
Views
0
Helpful
1
Replies

Get the length of a String

Robert Dawson
Level 1
Level 1

Hi

I want to evaluate the length of a string so that I can change the call flow dependent on the length of the phone number that's detected.

E.g. Calls from

 

Calling NumberString Length
12344
177985
0178212345611

 

Once the length of the variable is set, I can run it through in if statement - I'm just not sure of the expression to use to get the length.

Thanks!

 

 

 

1 Reply 1

Chris Deren
Hall of Fame
Hall of Fame

Use .length() string method, for example

if strVar.length() == 4