charAt
The charAt task returns a character at a given index. The index of the first character in the string is 0, the second character is 1, and so on. When the index value is specified, the return result will be the character at that index location in the string.
Potential use case
Suppose you have a long list of numbers and you want to verify that a certain number is located at a certain position in the index. You could use the charAt task for that validation.
Properties
Example
In this example:
- The
strreference value is the two-word sentence “Hello World”. - The
indexlocation is position1in thestr.

The result of this task returns the letter “e” because the character is located in the 1 position of the index. The index starts at 0 and counts up from there.
