# Punctuation/Syntax

> Source: https://manual.pvxplus.com/introduction/punctuation-syntax

The following punctuation symbols have fixed meaning in a PxPlus application:

|  |  |  |
| --- | --- | --- |
| **!** | **Exclamation** | PxPlus accepts an exclamation mark as a substitute for the [REM](https://manual.pvxplus.com/directives/rem) directive.<br>***Example:***<br>!this remark<br>An exclamation mark as the leading character of a string also denotes one of Sage Software's embedded bitmaps; e.g. !STOP. |
| **"** | **Quotes** | Standard quotation marks enclose string literals. A leading quotation mark can also be used at the start of a statement as a substitute for the [INVOKE](https://manual.pvxplus.com/directives/invoke) directive.<br>***Example:***  <br>  <br> "NOTEPAD is the same as INVOKE "NOTEPAD |
| **$** | **Dollar Sign** | A dollar sign at the end of a variable name marks a string variable.<br>***Example:***<br>CUST$<br>Dollar signs can also enclose hexadecimal values.<br>***Example:***<br>$8A$ |
| **'** | **Apostrophe** | Single quotation marks (*apostrophes*) enclose system parameters and mnemonics; e.g. 'TL' and 'CS'. The [Apostrophe Operator](https://manual.pvxplus.com/appendix/apostrophe-operator) is used to indicate a control object property. |
| **;** | **Semi-colon** | Directives and entry points are separated by semi-colons in program statements. |
| **\*** | **Asterisk** | PxPlus includes a number of auxiliary applications. These utility names are preceded by an **\*** (*asterisk*); e.g. \*CMD, \*UPB, and the **\*\[ \]** search utility described below. An asterisk may have specific meaning in the syntax of some directives or functions; e.g. as a wildcard character to denote a *global* occurrence. |
| **%** | **Percent Sign** | A percent sign *before* a variable name denotes a *global* variable or function.<br>***Example:***<br>%DEPT<br>A percent sign *following* a variable name indicates that the variable is an *integer*.<br>***Example:***<br>DEPT%<br>A variable name having *both* leading ***and*** trailing percent signs denotes a global variable for integer values.<br>***Example:***<br>%DEPT% |
| **\*\[ \]** | **Asterisk + Square Brackets** | The ***search utility*** (for searching programs) is invoked by enclosing a search string within square brackets preceded by an **\*** (*asterisk*).<br>***Example:***<br>```<br>->*[print]<br>0090 rem Printing<br>0100 print day<br>0120 print "Today's date is ",day<br>0610 if len(X$)>100 then print "TOO LONG"; goto 0210<br>->*[26]<br>0110 setday "02/26/99"<br>```<br>The search is not case sensitive.  <br>  <br>**\*\[ \]=\[ \]** Global ***search and replace*** can be used to make changes in programs. See **[Search and Replace](https://manual.pvxplus.com/pxplus-user-guide/development-tools/writing-and-modifying-program-code/pxplus-command-line-editing#search)**.<br>***Example:***<br>\*\[CST$\]=\[CUST$\] changes all instances of CST$ to CUST$.<br>If square brackets are part of the search string, use curly braces **{ }** to enclose the search string.<br>***Example:***<br>{\[26\]} |
| **-:  <br>  <br>->  <br>  <br>-}** | **Prompts** | When your PxPlus prompt is a dash with a colon, this indicates that your current program has not been saved.  <br>  <br>After you save your program, the prompt reverts to an arrow.  <br>  <br>Under WindX, the prompt is a dash and a right brace. |
| **/ *or* \\** | **Slashes** | PxPlus accepts either slash (forward or back) as a substitute for the [LIST](https://manual.pvxplus.com/directives/list) directive.<br>***Example:***<br>/30 is the same as LIST 30 |
| **xxxx:** | **String-Trailing Colon** | Use a trailing colon to denote that your string is a line label (statement reference or entry point).<br>***Example:***<br>```<br>0110 if UPDATE$="Y" gosub CUSTOMER<br>...<br>2000 CUSTOMER:<br>2010 input 'CS',@(5,5),"Enter customer number",CST<br>2020 ! Rest of routine ...<br>2200 return<br>``` |
| **?** | **Question Mark** | PxPlus accepts a leading question mark as a substitute for the [PRINT](https://manual.pvxplus.com/directives/print) directive.<br>***Example:***<br>?CUST$ is the same as PRINT CUST$<br>PxPlus also places a question mark between a line number and program statement to denote a syntax error. |
| **\`** | **Back Apostrophe** | PxPlus accepts the back apostrophe as a substitute for the [EDIT](https://manual.pvxplus.com/directives/edit) directive. |
