Skip to main content

7.9.2 LEFT

Function

LEFT is called the left interception function of the string. It starts from the first string in the input string, intercepts a total of L characters and uses OUT to output the intercepted string content

LD graphics

Alt text

Parameter description

Interface variableDeclarationData typeDescription
INInputSTRINGString
LInputINTNumber of intercepted characters
Function nameReturn valueSTRINGString

Corresponding syntax

  • IN: input string
  • OUT: Output the intercepted string
  • L: How many characters are intercepted in total

Example

  • LD sample animation is as follows:

alt text

  • ST example is shown in the following code:
OUT:=LEFT(IN:=IN1,L:=4);