The tilde (~) is an escape character that causes the AVM to read the following character literally. A tilde followed by three octal digits represents a single character. Use it as a lead-in to enter the special characters shown in the following table. In a procedure, a tilde followed by something other than the items in the following table is ignored. For example, "~abc" is treated as "abc". (This may not work as expected when passing parameters to an include file.) The items in the following table are case sensitive.
| Sequence | Interpreted as | Comment |
|---|---|---|
| ~" | " | Use within quoted strings as an alternative to two quotes (""). |
| ~' | ' | Use within quoted strings as an alternative to two apostrophes (''). |
| ~~ | ~ | – |
| ~\ | \ | – |
| ~{ | { | – |
| ~nnn | A single character | Where nnn is an octal value between 000 and 377. All three digits are required. |
| ~t | Tab character | Octal 011 |
| ~r | Carriage return | Octal 015 |
| ~n | New line / Line feed | Octal 012 |
| ~E | Escape | Octal 033 |
| ~b | Backspace | Octal 010 |
| ~f | Form feed | Octal 014 |
| ~uXXXX | Unicode scalar codepoint in plane 0 (U+0000 to U+FFFF) | Where XXXX is a 4-digit, case-insensitive hex digit. |
| ~UXXXX | Unicode scalar codepoint in planes 0-16 (U+0000 to U+10FFFF) | Where XXXXXX is a 6-digit, case-insensitive hex digit. |