Skip to main content
1-Visitor
August 2, 2021
Solved

How to find the length of the string

  • August 2, 2021
  • 1 reply
  • 1062 views

Is it possible to find the length of the string.

If it is possible let me know how.

Best answer by DmitryTsarev

Is this what you're looking for?

 

 

stringLen = InputString.length;
string2 = "Second";
stringLen2 = string2.length;
logger.warn("String1 / String2 length is " + stringLen + " / " + stringLen2);
result = stringLen + " / " + stringLen2;

 

1 reply

17-Peridot
August 2, 2021

Is this what you're looking for?

 

 

stringLen = InputString.length;
string2 = "Second";
stringLen2 = string2.length;
logger.warn("String1 / String2 length is " + stringLen + " / " + stringLen2);
result = stringLen + " / " + stringLen2;