Previous Next        Current Page: NeXtMidas User's Guide / System Operation / Metacharacters / Using Metacharacters / Commenting in Macros
back
FAQs   
Release Information   
Getting Help   
Basic Concepts   
Result Parameters   
XML Support   
Files   
System Operation   
   - Basic Command Form   
   + Parameters   
   + Switches   
   - Metacharacters   
      - Table of Metacharacters   
      - Using Metacharacters   
         - Command Entry   
         - Commenting in Macros   
   - Inline Calculations   
   - Function Invocation   
Macros   
WebStart Intro   
Graphics   
X-Midas Interoperability   
Third-Party Compatibility   
Installation and Customization   
Running NeXtMidas Independently   
Glossary   


Commenting Command Sequences

In a macro, a non-executable comment begins with an exclamation point (!). You can place a comment on its own line, or insert it after a string.

The following example demonstrates both acceptable and unacceptable forms of commenting:

! This is a comment
startmacro
  ! Yet another comment
  res a 2     ! This is also a comment
  
  res b "     ! This is not a comment"
  res c "str" ! But, this is a comment

  !!! This is a comment, too.
endmacro

For more examples, see triangle.mm.


back