Skip to content

Optionvar

Set flagvar 0 or a specific slot to the last selected option from a prompt, numberprompt or ItemList.

Syntax

(1) (Set flagvar 0 to option)

|optionvar|

(2)

|optionvar,flagvar|

Parameters

flagvar: int

The flagvar slot to set the option value to. This must be a valid flagvar slot or an exception will be thrown.

Remarks

option is a notable field used to indicate the currently selected option starting from 0 in any prompt, numberprompt or ItemList. It is an essential field for handling a confirmation with them. For more information, see Prompt > Prompt handling, NumberPrompt > About the fields, flagvar and flagstring used and ItemList State Machine > Options management.