Show Table of Contents
function::stringat
Name
function::stringat — Returns the char at a given position in the string.
Synopsis
function stringat:long(str:string,pos:long)
Arguments
str- The string to fetch the character from.
pos- The position to get the character from. 0 = start of the string.
General Syntax
stringat:long(srt:string, pos:long)
Description
This function returns the character at a given position in the string or zero if thestring doesn't have as many characters.

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.