\ (Escape)
Welcome to our Knowledge Base
Documentation | Blog | Demos | Support
< All Topics
Print
\ (Escape)
5 out of 5 stars
1 rating
5 Stars | 100% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
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
char | any 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
char1 | either digits from 0 to 9, or letters from A (a) to F ( f), that together comprise a hexadecimal character code |
char2 | either 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
commandstart | any portion, from the beginning, of one command |
remainder | the 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 "\0F" let x = 10 \ y = 5 \ z = 2
See Also
Updated
ByJason Lee
Was this article helpful?
5 out of 5 stars
1 rating
5 Stars | 100% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
5