get_list_slotvalues/3—retrieve a list of slots from one or more objects
The get_list_slotvalues/3
function retrieves a list of slots from one or more objects. The syntax for this function is as follows:
get_list_slotvalues($OBJECTS,$SLOTS,$VALUES)
$VALUES=get_list_slotvlaues($OBJECTS,$SLOTS)
get_list_slotvalues/3 arguments
Argument | Mode | Type | Description |
---|---|---|---|
| Input | LIST_OF OBJECT | Specifies the list of objects from which a slot list is to be retrieved |
| Input | LIST_OF STRING | Specifies the list of slots to be retrieved from |
| Output | LIST_OF_STRING | Resulting list of slot values |
Use the get_list_slotvalues/3
function to retrieve one or more of the slots specified in the $SLOTS
list from the objects in $OBJECTS
. The resulting slots are returned in the $VALUES
list.
The required slots must be specified in $SLOTS
by name, or by reference to an object and the slot name. A reference to a slot of an object has the form $n.SlotName, where n is the sequence number of the required object in $OBJECTS
. If the slot is mentioned only by name, with no object reference, it is taken from the first object in the list.
get_list_slotvalues/3 example
$VALUES = get_list_slotvalues([$E,$D],[mc_ueid,status]);
The list $VALUES
contains the mc_ueid
slot and the status
slot from the event object $E
.
$VALUES = get_list_slotvalues([$E,$D],
['$1.mc_ueid','$1.status','$2.mc_udid']);
The list $VALUES
contains the mc_ueid
slot and the status of the event object $E
, and the mc_udid
slot of the data object $D
.
Comments
Log in or register to comment.