error

Displays a custom error message and ends execution.

Syntax

error(A)

Inputs

A
String message to be displayed.
Type: char | string
Dimension: string

Example

Error with message:

A = 10
error('ERROR MESSAGE %d NUMBER', A)
Error: ERROR MESSAGE 10 NUMBER