up Inquisit Language Reference

option function

Returns the option at the specified index.

Member of

<checkboxes><dropdown><listbox><radiobuttons>

Syntax

optionitem.name.option(index)

Return Type

string

Parameters

Name Type Description
index integer The index of the option to get.

Remarks

The option function returns an response from a multiple choice question.

Examples

The following displays an option from a radioButtons element in the item for a text element:

<text myText>
/ items= ("current category = <% radioButtons.example.option(1) %>")
</text>

Copyright Millisecond Software, LLC. All rights reserved.