# prompt statement

The prompt statement indicates the single
character to display during subsequent input statements that prompt
for input from the keyboard.

## Syntax

```
prompt character.exp
```

## Parameter(s)

| character.exp | Specifies the single character to display during subsequent input statements that prompt for input from the keyboard. |
| --- | --- |

## Description

The default prompt character
is `?`. The prompt character remains defined until
another prompt statement is executed.

Note: If a string is passed to prompt, all characters
beyond position 1 are ignored.

## Example(s)

This statement sets the prompt
character to null so that no character is output when an input statement is executed. This is useful when working
with serial devices.

```
prompt ""
```

## See also

- [input statement](https://d3codex.com/pickbasic-flashbasic/input-statement/)
- [Prompt characters](https://d3codex.com/definitions/prompt-characters/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)

---
Source: https://d3codex.com/pickbasic-flashbasic/prompt-statement/ - part of the D3Codex reference.
