> For the complete documentation index, see [llms.txt](https://200ok.gitbook.io/200ok-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://200ok.gitbook.io/200ok-documents/user-manual/built-in-functions/text/getchar.md).

# getChar

The getChar function is a Standard function available in 200OK.

**Description**:\
The getChar function retrieves the character at the specified index from a given string.

**Syntax**: fx\_getChar(String, Integer)

**Example**:\
fx\_getChar(Hello, 1)

returns 'e' (since the character at index 1 in Hello is 'e').

**Scenario**:\
In a text-processing application, extracting specific characters from strings is essential for parsing or validation tasks. For instance, retrieving the first letter of a username or validating a fixed-format identifier. The fx\_getChar function enables precise character extraction by index, ensuring efficient string manipulation.
