Macro Language Reference > PIs > Block > <?blockend>
  
<?blockend>
Description
Marks the end of a block.
* 
If topbreak is set to 1 and <?blockend> occurs at the start of a line, then it no longer behaves like a carriage return and doesn’t create a newline, whilst still ending the block.
 
Example 353. Create a simple block
Using the three instructions shown below will create the most simple of blocks. Block and text properties should be placed within <blockstart> and <?blockbody>, which is the area known as the “block preamble”. Block content should be placed between <?blockbody> and <?blockend>.
<?blockstart>PUT BLOCK AND TEXT INSTRUCTIONS HERE
<?blockbody>PUT CONTENT HERE<?blockend>
Syntax
<?blockend topbreak:?>
topbreak
An optional parameter that allows you to specify block end behavior:
1
<?blockend 1> — if this form of the command is used and <?blockend> occurs at the start of a line, then it no longer behaves like a carriage return and doesn’t create a new line, whilst still ending the block.
2
<?blockend 2> — if the whole block is empty it will be ignored, it will take up no space, and margin merging will take place between the blocks on either side
Related Links