# print-error command

The print-error BASIC program prints
an error message from stacked data statements.

## Syntax

```
execute "print-error"
```
The print-error command is similar
to the print-err command with the difference that
this command, when executed from FlashBASIC, allows stacked data statements.

## Example(s)

```
data "100"
data "black"
data "white"
execute "print-error"

[100] ’black ’ is not ’white’.
```

## See also

- [error statement](https://d3codex.com/pickbasic-flashbasic/error-statement/)
- [messages file](https://d3codex.com/systemfiles/messages-file/)
- [print-err command](https://d3codex.com/tcl/print-err-command/)

---
Source: https://d3codex.com/tcl/print-error-command/ - part of the D3Codex reference.
