Next: Example for the Sequence
Up: Sequence Editor
Previous: Remove an Element
  Contents
  Index
Replace an Element
The commands
REPLACE,SELECTED,BY=new-name;
REPLACE,ELEMENT=place,BY=new-name;
replace one or more element(s) in the sequence.
Two cases are possible:
- SELECTED
-
All currently selected elements are replaced by an occurrence of the
element new-name.
- ELEMENT=old-name
-
The (unique) element at place is replaced
by new-name.
It is an error if old-name is not unique.
Example:
REPLACE,ELEMENT=QF15,BY=QF17; // replace one element
MAD User Guide, http://wwwslap.cern.ch/mad/