c0de 0.3.0Diese Seite auf Deutsch

LEFT ​

Returns the first characters of a text.

If the text is shorter, you get the whole text. A negative length raises INVALID_ARGUMENT.

Parameters and results

  • text STRING: the text
  • length INTEGER: the number of characters
  • result result STRING: the first length characters

Example

c0de
CALL c0de/strings/LEFT
    PARAMETER text name ;
    PARAMETER length 3 ;
    RESULT result short