Skip to main content Skip to complementary content

left

Extracts a sub-string with a specific length from the first argument, starting with the left-most character.

Any data type can be used for the first argument. Types other than string are converted to string before the function is applied.

Arguments

  1. Input string.
  2. Length of the sub-string to extract as an integer.

Examples

Expression Result
left("Hello World!", 5) "Hello"

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!