Special Character $
- Last UpdatedOct 29, 2024
- 2 minute read
The $ character has a special meaning in PML. It is an escape character, which means that together with the character which follows it are treated as a special instruction to PML.
The pair of characters beginning with $ is known as an escape sequence. $P is a commonly encountered example, which is used to output a message to the screen:
$P This text will be output to the screen
A number of other escape sequences will be described later in this manual. The important point to note here that if you need the dollar character itself as part of a command, you will need to double it:
$
As the last character on a line, $ means that the next line is a continuation line.
For example:
$P This is an example of a much longer message that will be $
output to the screen
|
$! |
The PML variable following the ! (or !!) is expanded as a STRING by using its own .STRING() method. Note: Note: |
|
$newline |
The command continues on next line without being automatically closed. |
|
$M/filename |
This executes a text file as a sequence of commands or an input macro. Named using its filename or pathname. |