User Tools

Site Tools

Navigation:  Templates > Template Language Reference > Complete Alpha Listing >====== #DEFINE (user defined macro) ====== Previous pageReturn to chapter overviewNext page

#DEFINE ( %macro name )




#DEFINE Defines a user defined macro that can be expanded using #EXPAND.
%macro name A user defined symbol used as the macro's identifier.
Statements A sequence of statements.
#ENDDEFINE Terminates the definition of a user defined macro.

#DEFINE defines the beginning of a section of code which can be expanded into generated code using the #EXPAND statement. A macro may not be defined with any parameters. #DEFINE must be terminated with #ENDDEFINE. Using #DEFINE and #EXPAND to define and expand macros for commonly used code sections will lead to cleaner template code while hiding unneeded target code from immediate view.



 IF %ControlUse <;= TODAY()




See Also:     #EXPAND

define_user_defined_macro_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)