Show Table of Contents
function::stringat
Name
function::stringat — Returns the char at a given position in the string
Synopsis
stringat:long(str:string,pos:long)
Arguments
str- the string to fetch the character from
pos- the position to get the character from (first character is 0)
Description
This function returns the character at a given position in the string or zero if the string doesn't have as many characters. Reports an error if pos is out of bounds.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.