Please enable JavaScript to view this site.

ESL Documentation

A string literal is a text string consisting of zero or more ASCII characters enclosed in quotation marks (""). The following are valid string literals:

 

""            # Length zero; called a null string.

" "           # A single blank.

"A"

"2"

"Logging On: Please Wait"

"Select MORE to continue"

 

The following are not valid string literals:

 

"Begin here       # WRONG: Not ended by quotation mark.

'OK to continue'  # WRONG: Delimited by apostrophes, not

                  # quotation marks.

 

A string literal can be specified in any context in which a string value is required; for example:

 

string variable Message is "Select anywhere to start"

 

disabled key ColorPrompt at position 50 50

    text "Press the desired color key"

 

send "Run DTR\n" to Newswire