Warning |
---|
Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here ! |
Info | ||
---|---|---|
| ||
This routine is available starting with katl-commons SIL Engine™ 1.0. |
Syntax
chop(str, nmb)
Description
Excerpt |
---|
Returns a string, chopped at nmb characters. Cuts down the string (if length is greater than nmb characters) to a string of max nmb chars. |
Returns nmb characters from str, starting with the leftmost character.
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
str | string | Yes | Specifies a character expression. |
nmb | number | Yes | Specifies the number of characters returned from the character expression str. |
Return type
string
Example
Example 1
Code Block |
---|
wret = chop("Once upon a time", 6); print(wret); |
Print Once u
Example 2
Code Block |
---|
wret = chop("Once upon a time", 30); print(wret); |
Print Once upon a time
Example 3
Code Block |
---|
wret = chop("Once upon a time", -1); print(wret); |
Print Once upon a time
See also
Filter by label (Content by label) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|