Skip to main content

7.9.4 RIGHT

Function

RIGHT is called the string right interception function, that is, starting from the last string in the input string, a total of L characters are intercepted and OUT is used 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:=RIGHT(IN:=IN1,L:=4);