Char at

From Kolmafia
Revision as of 00:20, 29 November 2010 by imported>Bale (start page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

substring( "Lorem Ipsum." , 4);

Would result in:

Returned: e