LEN

Provided by Standard Library.

Function of type STRING, returns the length of a string.

Input:

STR : STRING, string to be analyzed

Return value: INT, length of string (number of characters)

Example in IL: (Result is “4”)\ \ \ \

../_images/3138957c1e8f7eadc0a8640e01947982

Example in FBD:\ \ \ \

../_images/07210a721e8f7e01c0a8640e01947982

Example in ST:\ \ \ \

VarINT1 := LEN ('SUSI');