substr
Gives part of a text: the characters from a start position (0 for the first), for a length, or to the end when no length is given. A negative start counts from the end (-3 is the last three characters). Positions beyond the text give empty text.
Runs on: either side: the compiler places the statement that calls it where the values it uses live.
Format:
substr(text, start [, length])
Parameters:
| Parameter | Type | Description |
|---|---|---|
| text | string | the text |
| start | number | the position of the first character wanted; 0 is the first; negative counts from the end |
| length | number |  [Optional]how many characters; to the end when omitted |
Returned Value:
| Type | Description |
|---|---|
| string | the part |
Examples
initials = concat(substr(first, 0, 1), substr(last, 0, 1))