up previous next

Introduction to Strings

A string constant consists of a sequence of characters between double quotes (" "). For backward compatibility also single quotes (' ') are allowed, but this syntax is now deprecated.

example

    
Print "This is a string.";
This is a string.
-------------------------------
'So is this.'  -- deprecated
So is this.
-------------------------------
        
    
One may not, however, start a string with a single quote and end with a double quote, or vice versa.