echo
The echo command displays a specified message in the Main window.
Syntax
echo
Arguments
<text_string>
Specifies the message text to be displayed. Optional. If the text string is surrounded by quotes, blank spaces are displayed as entered. If quotes are omitted, two or more adjacent blank spaces are compressed into one space.
Examples
echo "The time is $now ns."
If the current time is 1000 ns, this command produces the message:
If the quotes are omitted, all blank spaces of two or more are compressed into one space.
echo The time is $now ns.
If the current time is 1000ns, this command produces the message:
echo can also use command substitution, such as:
echo The hex value of counter is [examine -hex counter].If the current value of counter is 21 (15 hex), this command produces:
The hex value of counter is 15.
Model Technology Incorporated Voice: (503) 641-1340 Fax: (503)526-5410 www.model.com sales@model.com |