Difference between revisions of "SET MACROS"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Enable or disable & macro substitution
 
Enable or disable & macro substitution
 
  
 
==Syntax==
 
==Syntax==
 
SET MACROS ON | OFF | (<expL>)
 
SET MACROS ON | OFF | (<expL>)
 
  
 
==See Also==
 
==See Also==
 
[[&]], [[SET EMACROS]], [[TEXT]]
 
[[&]], [[SET EMACROS]], [[TEXT]]
 
  
 
==Description==
 
==Description==
If SET MACROS is ON, then Recital substitutes & macros when command lines are read.  If SET MACROS is OFF, then no macro substitution is performed.  This command can be used to marginally accelerate program execution.  Also, macros are normally substituted in the TEXT ... ENDTEXT command.  Setting MACROS OFF disables this.  See the & function for more details concerning macro substitution.  By default MACROS is ON, so macro substitution is performed.
+
If SET MACROS is ON, then & macros are substituted when command lines are read.  If SET MACROS is OFF, then no macro substitution is performed.  This command can be used to marginally accelerate program execution.  Also, macros are normally substituted in the TEXT ... ENDTEXT command.  Setting MACROS OFF disables this.  See the & function for more details concerning macro substitution.  By default MACROS is ON, so macro substitution is performed.
 
+
  
 
==Example==
 
==Example==
Line 25: Line 21:
 
set macros on</code>
 
set macros on</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]

Revision as of 06:44, 12 December 2012

Purpose

Enable or disable & macro substitution

Syntax

SET MACROS ON | OFF | (<expL>)

See Also

&, SET EMACROS, TEXT

Description

If SET MACROS is ON, then & macros are substituted when command lines are read. If SET MACROS is OFF, then no macro substitution is performed. This command can be used to marginally accelerate program execution. Also, macros are normally substituted in the TEXT ... ENDTEXT command. Setting MACROS OFF disables this. See the & function for more details concerning macro substitution. By default MACROS is ON, so macro substitution is performed.

Example

set macros off
text
The & command is used to perform
macro substitution of the contents
of memory variables.
endtext
set macros on