The order() method allows programmers to define an order utilizing ranges and brackets in a standalone custom ordering variable. The order() method works when:
- the order contains explicit numbers and/or ranges
- the order utilizes ( ) or [ ] notation to indicate randomization or static positioning
- it is defined as a cvalue in a text field
The order() method does not work when:
- The order string is stored in anything other than a text field
- The order string contains anchored elements ($,^) or wildcards (*)
Syntax
To invoke order()
, use it inside of an invisible text field via cvalue:
ORDERVAR. invisible: y type: text cvalue: order('Order String')
ORDERVAR stores a string containing numbers 1 through 10 in a randomized order.
Example
In this example, ORDERVAR is used to apply the same random ordering to a list within each iteration of a block:
Comments
0 comments
Please sign in to leave a comment.