Escaping characters in SRL

Certain characters used within strings (any value that you place within double quotes) require special handling. For example, the backslash character (\), and the double quote character itself (").

To escape a character, use a backslash symbol preceding the character.

For example, to create the string "C:\folder", you would enter "C:\\folder". The first backslash is the escape character. The second backslash is the character being escaped.

When PolyAnalyst works with the string value, the \ character will be interpreted as an escape character, and not as a part of the content.

For example, to create a string containing a double quote character, you would enter "This string contains an escaped \" character". Here, the string will be created.

It is also worth mentioning the use of control characters.

Control characters

You can create strings that contain tabs and newline characters using escapes (using a backslash).

For example, "dog\nhouse" would generate a string where the word dog is in the first line, and the word house is in the second line.

To create a tab, use \t. To create a new line, use \n. To create a carriage return, use \r.