.. include:: ../../../Includes.txt .. _typo3fluid-fluid-cycle: ===== cycle ===== This ViewHelper cycles through the specified values. This can be often used to specify CSS classes for example. **Note:** To achieve the "zebra class" effect in a loop you can also use the "iteration" argument of the **for** ViewHelper. Examples ======== Simple:: {cycle} Output:: foobarbazfoo Alternating CSS class:: Output:: Note: The above examples could also be achieved using the "iteration" argument of the ForViewHelper Arguments ========= .. _cycle_values: values ------ :aspect:`DataType` mixed :aspect:`Required` true :aspect:`Description` The array or object implementing \ArrayAccess (for example \SplObjectStorage) to iterated over .. _cycle_as: as -- :aspect:`DataType` mixed :aspect:`Required` true :aspect:`Description` The name of the iteration variable