Current Page: NeXtMidas Training Getting Started - Part 1 Running NeXtMidas Commands Switches
- - | Command Switches: Some commands can have command modifiers, called switches, that modify how the command runs. Switches are easy to identify since they start with a slash (`/`).
        nM> calculator/hex x 2 2 +
        Calc: X = 0x00000004
  - Switches are specified immediately after the command name (with no spaces), or at the end of the command (preceded by a space).
        nM> calculator x 2 2 + /hex
        Calc: X = 0x00000004
There are two types of switches: State Switches Turn a feature on by the presence of the switch. Specifying a state switch as `/NAME` or `/NAME=ON` MAY be the same thing. It is possible to force a state switch to be off using `/NAME=OFF`. On state switches, the following true/false values are equivalent: TRUE: `Y,YES,T,TRUE,ON,1` FALSE: `N,NO,F,FALSE,OFF,0` Value Switches Specifies an appropriate value using the `/NAME=` syntax.
X-Midas Users Take Note:
X-Midas switches must immediately follow the name of the command. In X-Midas, state switches are turned off by the absence of the switch, in NeXtMidas they can be turned off explicitly by using `/NAME=OFF`.