Char

Returns a string consisting of the single character in arg1 located at index given in arg2. The first character has index 0. An empty string is returned if the index is out of range.

Arguments

Number Type Compulsory Default Description

1

string

Yes

Input string

2

real

Yes

Character position

Returns

Return type: string

Example

Show Char('Hello World!', 4)
displays result:
Char('Hello World!', 4) = 'o'