next up previous

12.3.10 Determining the Length of a String

The str-length function returns the length of a string as an integer.

Syntax

(str-length <string-or-symbol-expression>)

Example

CLIPS> (str-length "abcd")
4
CLIPS> (str-length xyz)
3
CLIPS>


next up previous