Input Statements

Input for \madxfollows in broad lines the \madnine format, i.e. free format with commas (,) as separators, although blanks may be used as separators outside {…} enclosures.

Blank input lines do not affect program execution.

The input is not case sensitive except for strings enclosed in double quotes (” ”).

The input file consists of a sequence of statements. A statement may occupy any number of input lines. Several statements may be placed on the same line. A statement must be terminated by a semicolon (;).

Several statements may be grouped into a block enclosed inside a {…} enclosure. In this case the terminating semmicolon can be omitted.

\madxmp

if (a \(<\) 3) { a=b*b; b=2*b+4; }; or \madxmpif (a \(<\) 3) { a=b*b; b=2*b+4; } are both valid.