DataBasic Reference > Statements and Intrinsic Functions > E > ECHO Statement

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

ECHO Statement (DataBasic) (m618703+echo_s.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

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.

RealityV15.1 (MoTW) Revision 7Comment on this topic