&ECHO [ HP DeskManager Customization ] MPE/iX 5.0 Documentation
HP DeskManager Customization
&ECHO
Syntax
&ECHO {condition}
where:
condition boolean number
Description
This is a useful debugging tool, as you can trace the steps of a script
as it runs. &ECHO enables or disables the echoing of each command line
in a script as it is executed. The condition will be 0 to disable
echoing and 1 to enable echoing, but by default it is 0.
Example
&ECHO 1
&FORWARD badarea <NOT <EQUAL <AREA> 1>>
&EXIT
$badarea
&PRINT Command only allowed in the In Tray
&EXIT
If you are not in the In Tray when this script is processed, you will see
on your screen:
&FORWARD badarea 1
&PRINT Command only allowed in the In Tray
Command only allowed in the In Tray
&EXIT
You can trace the path of the script. The result of the &FORWARD command
was 1 (true) so you were not in the In Tray. The script would then
process the &PRINT command in $badarea and exit.
MPE/iX 5.0 Documentation