Char at

From Kolmafia
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Function Syntax

string char_at(string source ,int index )

This function returns the character in source which is at position index.

Code Sample

Returns a portion of a string.

char_at( "Lorem Ipsum." , 3);

Would result in:

Returned: e