Skip to main content

Macros

Macros

ObjectScript also supports macros, which define substitutions. The definition can either be a value, an entire line of code, or (with the ##continue directive) multiple lines. You use macros to ensure consistency. For example:

 #define StringMacro "Hello, World!"

 write $$$StringMacro

For more information on using macros, see Using Macros and Include Files.

FeedbackOpens in a new tab