INSTALL

\label{sec:install} \madbox

INSTALL, ELEMENT=string, CLASS=string, AT=real, FROM={string—SELECTED}; where the parameters have the following meaning:

{madlist}\ttitem

ELEMENT name of the (new) element to be inserted (mandatory)

\ttitem

CLASS class of the new element to be inserted (mandatory)

\ttitem

AT position where the element is to be inserted; if no ”from” is given,this is relative to the start of the sequence. If ”from” is given, it is relative to the position specified there.

\ttitem

FROM either a place (i.e. the name(+occurrence count) of an element already existing in the sequence, e.g. mb[15], or mq.a..i1..4 etc.; or the string SELECTED; in the latter case an element of the type specified will be inserted behind all elements in the sequence that are currently selected by one or several SELECT commands of the type \madxmpSELECT, FLAG=seqedit, CLASS=.., PATTERN=.., RANGE=..;

Note: No element definition can occur inside a SEQEDIT ... ENDEDIT block.