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!"

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License