Skip to main content

charAt (Function)

This function returns the char value that is present at the given index position. of the input string.


<STRING> str:charAt(<STRING> input.value, <INT> index)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
input.valueThe input string of which the char value at the given position needs to be returned.STRINGNoYes
indexThe variable that specifies the index of the char value that needs to be returned.INTNoYes

Example 1

charAt("gdn", 1)

In this case, the function returns the character that exists at index 1. Hence, it returns S.