# Menu Index

{% hint style="info" %}
**Block Information**

Available in: Page Flow

Toolbox Category: Action - Menu

Block Type: [Output](https://docs.zingy.ai/app-editor/block-anatomy#output-block)

Output Type: [*numeric*](https://docs.zingy.ai/app-editor/page-flow/references/value-types)
{% endhint %}

**`Menu Index`** is an [output block](https://docs.zingy.ai/app-editor/block-anatomy#output-block) that provides the numeric index of the selected option when using the [Show Menu](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/show-menu) block. The output is of type [*numeric*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) and is compatible with [Value Parameters](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) of type [*numeric*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) or of type [*any*](https://docs.zingy.ai/app-editor/page-flow/references/value-types).

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FhTthPOBfYjjih23MMsDY%2Fimage.png?alt=media&#x26;token=9c5c8d67-ed8f-45ba-9667-fa42aeda0b19" alt="" width="164"><figcaption><p>Menu Index block</p></figcaption></figure></div>

{% hint style="warning" %}
The Menu Index block only works when used inside the *Selection Tasks* [flow parameter](https://docs.zingy.ai/app-editor/block-anatomy#flow-parameters) of the [Show Menu](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/show-menu) block.
{% endhint %}

***

## Usage Example

The image below shows an example of the Menu Index block used inside the *Selection Tasks* [flow parameter](https://docs.zingy.ai/app-editor/block-anatomy#flow-parameters) of the [Show Menu](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/show-menu) block.

The [Show Information Popup](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/show-information-popup) block is used to display the selected option's numeric index and its text.

<figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FPgKeN7jcDZBsC8Xzx3R9%2Fimage.png?alt=media&#x26;token=bf4a59f8-8109-489e-8dca-8bb1a85b1094" alt=""><figcaption><p>Example of Menu Index block</p></figcaption></figure>
