Open topic with navigation

# getComponent

The `getComponent` method returns a specified component object. For example, if you have six components, you can return the fourth component by using `edkmatch:getComponent(4)`.

NOTE:

Lua index values start from 1, not from 0 as in most other programming languages. For example, to get the third component object in a list, you must enter `edkmatch:getComponent(3)`.

## Syntax

`edkmatch:getComponent(index)`

## Arguments

Argument | Description
--- | ---
`index` | The number of the component to get.

## Returns

The component object at the specified index position in the match.

Related Topics

- getName
- setName
- getText
- setText

© 2013-2017 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm