\ (Escape)

\ (Escape)

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

\ (Escape)

(Escape)

Causes the following character to be treated literally, or as a hex code in a character string; indicates continuation of a command on the subsequent line.

Syntax #1

Causes the character that follows it in a string to be treated literally.

char

Parameters

charany single character that is to be treated literally in a character string

Syntax #2

Causes certain characters that follow it in a string to be treated as hexadecimal code.

char1char2

Parameters

char1either digits from 0 to 9, or letters from A (a) to F ( f), that together comprise a hexadecimal character code
char2either digits from 0 to 9, or letters from A (a) to F ( f), that together comprise a hexadecimal character code

Syntax #3

Indicates the continuation of a command onto a subsequent line.

commandstart «
remainder »

Parameters

commandstartany portion, from the beginning, of one command
remainderthe remaining portion(s) of the same command

Comments

In a character string, the escape operator causes the next character to be treated literally or as a hex code. Outside of a character string, it indicates that a command continues on the next line.

Example

“This is a quote (“); this is a backslash (\)”
output “�F”
let x = 10
y = 5
z = 2

See Also

About Character Literals

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

pt_BRPortuguese