Automation Engine Script Guide > Introduction > Advanced Users > Strings

 Strings

AE Script contains several scriptA particular Automation Engine object type. elements which can be used to edit strings. The most important strings are explained in this listShows entities in a grid view. A list of all string functions is provided in a functional overview.

Comparing Characters

Description

Example

Result

STR_MATCH - compares two strings with each other

:SET &COMPARISON# = STR_MATCH("UC4", "global")

N

Connecting Characters

Description

Example

Result

STR_CAT - connects two strings

:SET &STRING# = STR_CAT("UC4", " system")

AE system

Line Break

Description

Example

Result

UC_CRLF - supplies a line break

:SET &NL# = UC_CRLF()
:
SET &STRING# = "UC4 &NL# system"

UC4
system

Replacing Characters

Description

Example

Result

STR_SUBSTITUTE - replaces part of the string

:SET &STRING# = STR_SUBSTITUTE("UC4 environment", "environment", "system")

UC4:system

Retrieving a String's Length

Description

Example

Result

STR_LENGTH - returns the number of characters

:SET &LENGTH# = STR_LENGTH("UC4")

3

Searching Characters

Description

Example

Result

STR_FIND - returns the location where the string is found

:SET&LOCATION# = STR_FIND("AE system", "system")

5

Truncating Characters

Description

Example

Result

SUBSTR - returns part of the string

:SET &PARTOFSTRING# = SUBSTR("UC4:system", 5)

system

 

 


Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support

Copyright © 2016 Automic Software GmbH