Previous Next         Current Page: NeXtMidas User's Guide / System Operation / Switches / Switch Usage
FAQs   
Release Information   
Getting Help   
Basic Concepts   
Result Parameters   
XML Support   
Files   
System Operation   
   - Basic Command Form   
   + Parameters   
   - Switches   
      - Switch Usage   
      - Global Switches   
      - Current Switch List   
   + Metacharacters   
   - Inline Calculations   
   - Function Invocation   
Macros   
Applets and WebStart   
Graphics   
X-Midas Interoperability   
Third-Party Compatibility   
Installation and Customization   
Glossary   






Usage

There are two categories of switches: value and state. Value switches take a value (e.g. /S=G). State switches appear directly after the command name or at the end of all parameters. They assert their behavior simply by being present and do not need a value (e.g. /QUIET). A state switch actually has the value of 1 if present, which can be turned off by giving it a value of 0 (e.g. /QUIET=0 or /QUIET=NO).

If a state switch appears in a parameter list, it is treated as the "value of" that position-dependent parameter. This creates a natural syntax for branching on switches applied to a macro from within the macro. For instance, if the SD360 macro runs with the /CLIENT switch, a branch within the macro can be written as:

if /CLIENT gt 0
! do this
endif