AE Script contains several script elements which can be used to edit strings. The most important strings are explained in this list. A list of all string functions is provided in a functional overview.
Description |
Example |
Result |
---|---|---|
STR_MATCH - compares two strings with each other |
:SET &COMPARISON# = STR_MATCH("UC4", "global") |
N |
Description |
Example |
Result |
---|---|---|
STR_CAT - connects two strings |
:SET &STRING# = STR_CAT("UC4", " system") |
AE system |
Description |
Example |
Result |
---|---|---|
UC_CRLF - supplies a line break |
:SET &NL# = UC_CRLF() |
UC4 |
Description |
Example |
Result |
---|---|---|
STR_SUBSTITUTE - replaces part of the string |
:SET &STRING# = STR_SUBSTITUTE("UC4 environment", "environment", "system") |
UC4:system |
Description |
Example |
Result |
---|---|---|
STR_LENGTH - returns the number of characters |
:SET &LENGTH# = STR_LENGTH("UC4") |
3 |
Description |
Example |
Result |
---|---|---|
STR_FIND - returns the location where the string is found |
:SET&LOCATION# = STR_FIND("AE system", "system") |
5 |
Description |
Example |
Result |
---|---|---|
SUBSTR - returns part of the string |
:SET &PARTOFSTRING# = SUBSTR("UC4:system", 5) |
system |