ZIM Comment Block >

ZIM Comment Block << >>

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

ZIM Comment Block << >>

(Program template delimiters)

<< your code >>

Quickly marks a large block of code that you want to prevent from running or that you want to be generated by the GENERATE command by putting the delimiters at the start and end of an output section in a template program.

Syntax

Place a two less than characters before the start of the code.

<< 
code / statements

>>

Place a two greater than characters at the end of your code.

Parameters

code \ statements

 

one or more command statements, typically using macros, to send to the current output destination when the program containing them is processed with a GENERATE command

 

Comments

The program template delimiters, << and >>, must appear alone on a physical line in the application document. When the program is executed, parsed, or compiled, the statements between the delimiters are ignored.

When the program is run under the GENERATE command, the statements are sent as output, after macro substitution, to the current output device.

Example

… commands1 …
<<
… commands2 …
>>
… commands3 …

Under normal execution, commands1 and commands3 execute normally; commands2 are ignored.

When the program is parsed or compiled, commands1 and commands3 are parsed or complied in the usual manner; commands2 are ignored.

When the GENERATE command is used, commands1 and commands3 execute normally; commands2 are sent as output, after macro substitution, to the current output device.

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish