String
A String is a text value, or a sequence of characters. It is the only value type that is displayed on a document as is - all other value types are first converted into Strings before ending up as part of document content.
Related commands
set
Allows creation of new String variables within the logic using value expressions likeGiraffe
or${'Giraffe'}
, but not${Giraffe}
.
Methods
contains(string) | Resolves into Boolean For example, an expression |
length() | Resolves into a Number telling how many characters the String contains. For example, an expression |
replace(target,replacement) | Resolves into a String that has all occurrences of the specified 'target' text replaced with 'replacement' text. For example, if variable 'name' has value "Important template", expression |
startsWith(string) | Resolves into Boolean true or false depending on whether the String starts with the specified parameter String. For example, an expression |
substring(beginIndex) / substring(beginIndex,endIndex) | Resolves into a String that is a portion of the base String. The portion starts from the character at index specified with 'beginIndex' (0 being the first character) and extends to the character at index specified with 'endIndex', or to the end of the String if 'endIndex' is not defined. For example, if 'documentName' is "C288 Introduction Letter", expression |
toLowerCase() / toUpperCase() | Resolves into a String that is the same String except with all the characters converted into lower or upper case. For example, if 'favoriteColor' is "green" or "Green", expression |