length of

operator

Return type: Integer
Returns:       A numeric expression equaling the length of the tested string-expression.

Syntax
length of string-expression


Purpose

An operator that calculates the length of a string expression. The result is a numeric expression. The following code demonstrates a common method of using length of to do this:

  do when length of "123" = 3
  ...
  done