Home Online Manual
Top
Back: datetime
Forward: defined
FastBack: Functions and system variables
FastForward: Control structures
Up: Functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.1.16 dbprint

Syntax:
dbprint ( int_expression, expression_list )
Type:
none
Purpose:
applies the print command to each expression in the expression_list if int_expression is positive. dbprint may also be used in procedures in order to print results subject to certain conditions.
Syntax:
dbprint ( expression )
Type:
none
Purpose:
The print command is applied to the expression if printlevel>=voice.
Note:
See Libraries, for an example how this is used for displaying comments while procedures are executed.
Example:
 
  int debug=0;
  intvec i=1,2,3;
  dbprint(debug,i);
  debug=1;
  dbprint(debug,i);
==> 1,
==> 2,
==> 3 
  voice;
==> 1
  printlevel;
==> 0
  dbprint(i);
See Debugging tools; print; printlevel; voice.