Number list
This function converts a comma-separated text containing numbers to a number list.
toNumberList(text) #Output: Number list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the following number list: 1, 3, 5, 7, 11, 13 |
|
Bash
|
In case the issue has the components "Frontend" and "Backend" with the respective IDs 10001 and 10002, this example returns the following number list: 10001, 10002 |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Any comma-separated text satisfying the format: "Element1, Element2". |
Output
This function returns a number list
Number list with defined seperators
Variant where you can additionally define custom separators.
Leading and trailing spaces around each list element are automatically removed.
toNumberList(text, separators) #Output: Number list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the following number list: 1, 3, 5, 7, 11, 13 |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Any text containing numbers in decimal representation (e.g. "1, 2, 3") , separated by one of the characters defined in the second parameter. |
|
|
text |
Any separator characters. |
Output
This function returns a number list
(books) Use cases and examples
| Use case |
|---|
| No content found. |