RIGHT¶
Provided by Standard Library.
Function of type STRING. Returns the right, initial string for a given string.
Inputs:
STR : STRING; string to be analyzed
SIZE : INT; number of characters to be counted from the right in string STR, starting with “1”
Return value: STRING; initial right string
RIGHT (STR, SIZE) means: Return the first SIZE character from the right in the string STR.
Example in IL: ( Result is ‘USI’ )\ \ \ \
Example in FBD:\ \ \ \
Example in ST:\ \ \ \
VarSTRING1 := RIGHT ('SUSI',3);