String.char_at

String.char_at

String.char_at

Function

Read the character at the specified character position.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
indexIntNo0Character subscript, negative numbers will be treated as 0.

Return value

TypeDescription
String/EmptyReturns a single-character string when the subscript exists; returns Empty when out of bounds.

Example

Notes

  • ASCII strings are read as byte subscripts; non-ASCII strings are read as Unicode character subscripts.