<shuffle>
<shuffle> is a Math Operator
component that re-orders a list of referenced components and creates document variants based on the different possible orders.
Attributes and Properties
| Attribute | Type | Values |
|---|---|---|
asList = "…" | "true" "false" | |
type = "…" |
The <shuffle> component has no properties.
Example: Shuffle a list of numbers
Four <number> components are defined and then re-ordered (which in turn creates document variants) using
the <shuffle> component.
Select a new page variant from the pulldown menu at the top of the editor to see different variants of the document.
Example: Shuffle an ordered list
Four <li> (list item) components are defined within an <ol> (ordered list) and then re-ordered using the <shuffle> component.
Select a new page variant from the pulldown menu at the top of the editor to see different variants of the document.
Example: Shuffle a <textList>
A named <textList> is defined within a <setup> block, then re-ordered using the <shuffle> component.
Select a new page variant from the pulldown menu at the top of the editor to see different variants of the document.
Example: Shuffle rows in a <tabular>
The individual <row> components within a <table> can be re-ordered using the <shuffle> component.
Select a new page variant from the pulldown menu at the top of the editor to see different variants of the document.