up Inquisit Language Reference

itemProbabilities property

Returns a collection of decimal values representing the probabilities with which the corresponding items in the items collection are randomly selected.

Member of

<list>

Syntax

list.name.itemProbabilities

Read/Write

Type

array

Remarks

This is a list property.

Examples

The following displays the value of the probability with which the second item in a list is presented:

<text myText>
/ items= ("The probability of <% list.payoffs.items[1] %> is <% list.payoffs.itemProbabilities[1] %>")
</text>

The following displays the value of the first itemProbabilities in an itemProbabilities set:

<itemProbabilities negativeitems>
itemprobabilities = <% itemProbabilities.negativeitems.itemProbabilities[0] %>
</page>

The following displays the value of the first itemProbabilities in a list:

<list rankedpreferences>
itemprobabilities = <% list.rankedpreferences.itemProbabilities[0] %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.