The procedure dbprint is useful for optional output of data: it takes 2 arguments and prints the second argument, if the first argument is positive; it does nothing otherwise.
dbprint
5.1.12 dbprint 5.3.11 voice