Closed jodavies closed 6 years ago
The print
statement is executed for every term, so if there are none, nothing happens.
You could use #write
instead.
It is a bit tricky point that Print
has two meanings: (1) print for every terms as an executable statement and (2) print expressions at the end of the module as a kind of module control statement/declaration. So the manual says the type of the Print
statement is "Print statement". In your case Print
has a "..." string and acts as an executable statement.
Ah, yes, of course. Usually I use #message for such things, but for some reason I was using a print like this somewhere, and it took me a while to track down why nothing was happening... Thanks!
The following program prints nothing:
If one uncomments the expression, FORM prints
hello
as I would expect.Similarly, this also prints nothing:
Thanks, Josh