Using smart value text functions
In a similar fashion to working with dates and times, smart value functions that deal with text strings allow us to manipulate any text field type, including the sub-attributes of fields where they are also text-type fields.
In this section, we will look at how smart value functions for text allow us to manipulate text, encode it for use in HTML, JSON, XML, or URLs, and how we can use functions to test for specific characteristics within blocks of text.
Let's take a look at the functions available to manipulate text in automation rules. The first set of functions we'll look at deal with text comparisons and return either true or false depending on whether the check passes or fails:
- startsWith(string)/endsWith(string): Checks whether the text field starts or ends with the given string, respectively
- equals(string)/equalsIgnoreCase(string): Checks whether the text field equals the given string exactly or ignoring capitalization...