Automation Engine Script Guide > Ordered by Function > Strings > STR_LENGTH

STR_LENGTH, STR_LNG

Script Functions: Returns the length of a string

Syntax

STR_LENGTH(String)
STR_LNG
(String)

Syntax

Description/Format

String

Alphanumeric string
Format: script literal or script variable

 

Return code

Number of string characters

Comments

Both scriptA particular Automation Engine object type. functions are functionally identical.

Examples

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:

Script Elements - Strings

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