Current Page: NeXtMidas Training Getting Started - Part 1 Running NeXtMidas Commands Parameters
- - | Command Parameters: Simple commands can be run by typing their name and pressing enter. More complex commands take in one or more parameters.
        nM> calculator x 2 2 +
        Calc: X = 4.0
  - Parameters can be separated by spaces or (less often) commas. Most parameters have default values if they are omitted, therefore it is not uncommon to see a series of commas in a row indicating that a parameter has been skipped. The number of parameters skipped is always one less than the number of commas. Since NeXtMidas supports the `TAG=` syntax (see below), it is rare to see more than two or three commas in a row.
        nM> calculator ,, 2 2 +
        Calc: ANSWER = 4.0
  - Most parameters have names, and can be specified using a `TAG=` syntax.
        nM> res LABEL=x VALUE="a string"
  - When using the `TAG=` syntax the order of the arguments is not important (for most commands). NeXtMidas allows you to run `IF` commands from the Shell. This is useful for debugging.
        nM> res x "a string"
        nM> if x EQS "A STRING"
        INFO: Logical test = true
        nM> if/cs x EQS "A STRING"
        INFO: Logical test = false
X-Midas Users Take Note:
Pre-Python X-Midas macros do not support the `TAG=` syntax for parameters. As a result it is not uncommon to see commands specified with ten or more commas in a row to skip some of the parameters. Matching the parameters up in this case can be very tedious and is prone to mistakes in either X-Midas or NeXtMidas.