String
.
left()
Signature
String left (String s1, int length)
Domain
action, condition
Description
Returning a String containing the first
length
characters of the string
s1
.
Parameters
Name
Type
Description
s1
String
A String to test.
length
int
The length of the String.
Returns
Type
Description
String
The result String.
Cautions
none
Example
String result = String.left ("Hello world", 3);
Result is:
result: "Hel"