Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

This function converts a text with numbers into a number list.


Code Block
languagebash
titleSyntax
linenumberstrue
toNumberList(text, separators) #Output: Number list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
toNumberList("1, 3? 5; 7; 11; 13", ",?;")


This example returns the number list:

[1, 3, 5, 7, 11, 13]



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
text

Status
subtletrue
titletext

Any text containing numbers in decimal representation (e.g. "1, 2, 3") , separated by the characters defined in the second parameter.
separators

Status
subtletrue
titletext

Any separator character.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber list



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_tonumberlist" and space = currentSpace()


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Converts text containing numbers into a number list.

Output

Status
subtletrue
titlenumber list

Available since
Label