Strings

Strings are sequences of characters. The literal representation of a string is surrounded by double quotes. For example:

"MEL is fun!"
"abcdef012345"
":<>()&^%ABC"

Within strings you can use codes to include some special characters:

Code Character

\"

quotation mark

\n

newline

\t

tab

\r

carriage return

\\

backslash

Note:

In MEL scripts, do not split strings across lines without using a line continuation character ‘\’.

Concatenating strings

You can stick strings together (concatenate them, in programmer parlance) using the + operator:

"MEL" + " is fun!"
// This is the same as "MEL is fun!"