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 scriptA particular Automation Engine object type. 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 variableA placeholder for a value within a script..
:SET &number# = STR_LENGTH(&string)
See also:
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by function
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support | Copyright © 2016 Automic Software GmbH |