STARTMACRO and ends with
ENDMACRO. Between them are the commands to run.
startmacro say "Hello World!" endmacro
STARTMACRO line is also used to define any parameters that will be
passed into the macro. They are always specified using type-colon-name (e.g.
d:frequency for a parameter named frequency that is a
double).
startmacro s:name
say "Hello there ^{name}!"
endmacro
[..]) after the parameter name.
startmacro s:name[Mickey]
say "Hello there ^{name}!"
endmacro
!) and ends at the end of a line.
(Exclamation points inside quotes are part of the quote and not a comment.)
startmacro ! This is a comment say "Hello World!" ! This is another comment endmacro
&) at the end of the line. The ampersand
and any leading white space at the beginning of the next line are ignored.
startmacro
say "Hello &
World!"
endmacro
| X-Midas Users Take Note: |
|---|
X-Midas does not require STARTMACRO at the beginning of the macro. NeXtMidas
enforces this rule and will give an exception if the STARTMACRO is missing.
|