Macro Language Reference > PIs > Formatting Instructions > -
  
-
Description
For use with a variety of actions including jumps and labels. This command will exit the current tag immediately, returning to the stream in which the tag is situated or, if the tag is nested, returns to the tag that included it.
 
The command is ignored if it is placed in the main formatting stream.
 
Example 364. Exit tag and change text colour
The following macro will exit the current tag and change the text color to red:
<?--tic=red>
 
Example 365. Exit current tag and jump to "goto" in previous tag
<?--{label>
 
Example 366. Execute <?-> command if condition of showstring is true
In this example the <?-> command is executed if the x counter number 99 has the value of 5. Processing of the remainder of the tag/style instructions will stop.
<?show =5?x(99)[?down][?--]>
 
Notice the double '-' to exit both the 'temporary show string buffer' and the style.
Syntax
<?->
Additional Information
The command can be extended to exit several levels of style nesting in one go:
<?--> or <?-2> :
Exit from nesting two levels deep.
<?---> or <?-3>:
Exit from nesting three levels deep.
If the command tries to exit more levels than are currently nested PTC ALD will simply exit back to the main formatting stream, ignoring the extra levels.
* 
The exit command can be combined with almost any other command which starts with '<?'.