Left
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2018
- PI Server
Return a specified number of characters of a string from the left.
Syntax
Left(s1, len)
Arguments
-
s1
String
-
len
Integer
Returns
The first len characters of the string, starting from the left
Exceptions
If the arguments are not of the required types, returns an error
Example
-
Left("String_att", 3)
[Returns "Str"]