ECHO Statement

Controls the echoing of input characters.

Syntax

ECHO ON

ECHO OFF

ECHO expression

Syntax Elements

expression is a DataBasic expression or a variable that evaluates to a numeric value.

If expression evaluates to zero, echoing is disabled (same as ECHO OFF).

If expression evaluates to a nonzero value, echoing is enabled (ECHO ON).

Operation

ECHO ON enables the echoing of input characters to the terminal, while ECHO OFF suppresses echoing of input characters.

The current state of the ECHO feature can be determined using the SYSTEM(24) function.

ECHO replaces the user exit (U80E0) for controlling the echoing of input characters.

Examples

ECHO ON
INPUT X

Echoes the value of X to the terminal.

ECHO OFF
INPUT Y

Suppresses display of the value of Y on the terminal.

A = 35
B = 42
ECHO A+B

Enables echoing of characters, because the value of expression A+B evaluates to a nonzero.