$item
Return the value that corresponds to a given ID in an associative list.
$item(
ID,
AssociativeList)
Return Values
- Value that corresponds to the given ID in an associative list.
- NULL (""), if ID is not found in AssociativeList; $procerror is set to UPROCERR_ITEM (-1129).
Use
Allowed in all component types.
Description
The $item function acts in the same way as the getitem/id ProcScript statement, but can also be used as part of an expression.
For more information, see Lists and Sublists.
Find and Pass Associative List Items
The following example shows how to find and directly pass an associative list item to a ProcScript module:
if ($item("MEDIUM", myList) = "Book") call selectBook($item("ISBN_NR", myList)) endif