Left

Block Group: String Operations
Icon: Left block icon

The Left block returns the specified number of characters from the left end of a string.


Input/Output Properties

The following properties of the Left block can take input and give output.

input specifies the text string that contains the characters to extract.

length specifies how many characters to extract.


Output Property

The following property of the Left block can give output but cannot take input.


Special Cases

The following are special cases for the Left block:


Example

In this example, the Left block extracts the leftmost five characters in "Final Price" and returns "Final."

Left block example