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.

Last updated