Script Functions: Returns the length of a string
STR_LENGTH(String)
STR_LNG(String)
Syntax |
Description/Format |
---|---|
String |
Alphanumeric string |
Return code |
---|
Number of string characters |
Both script functions are functionally identical.
The first example returns 18 as the number of characters.
:SET &number# = STR_LENGTH(" Automic software ")
The second example retrieves the length of the string that is assigned with a script variable.
:SET &number# = STR_LENGTH(&string)
See also:
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by function