item, @ Full Description |
|
Syntaxstream-type? shelf-name (@ | item) numeric-expression Purpose Selects an item from a shelf based on its position. Shelf items are numbered consecutively starting at 1. Note that item numbers are not permanently attached to particular items. If an item is inserted into the middle of a shelf, all the items beyond the inserted item go up a position. To ensure you have an unchanging way of referencing an item on a shelf, use
The selector must not be greater than the number of items on the shelf. The number of items on a shelf can be determined by using the numeric value
process local stream foo size 4 set foo item 2 to "Mary had a little lamb.%n" output foo item 2 |