At runtime, the following expression will evaluate to the string Hello World.
Append("Hello", " ", "World")Each string contained in quotation marks is a string literal:
To complete a string, an expression author typically needs only to enter the desired text between the start quote and the end quote. For example:
"Genesys Cloud"
But what happens if the author wants to make a string literal for the value He said, “Hi”? If you take the approach described above, constructing a string literal with a start quote, text, and an end quote, your expression will be:
"He said, "Hi""
The desired literal is He said, “Hi”, but the string literal is a quote followed by text and then an ending quote. Looking at the above text, the string literal is actually “He said, “ followed by other text. However, we want the quoted text of “Hi” to also be part of the string literal. Unfortunately, the quotation mark that precedes the word Hi actually becomes the ending quote and the string literal ends there. So how can we resolve the text as part of the string literal? Use an escape sequence.