Page History
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Supported list types
|
Number list
UI Text Box | ||||
---|---|---|---|---|
| ||||
This function filters a number list by a given logical expression where It basically iterates over each list element, checks whether the logical expression returns true, and if it does, includes the element in the output. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
filterByPredicate(numberList, logicalExpression) #Output: Number list |
UI Expand | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
|
UI Expand | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
Parameters used in this function
| |||||||||||||||||||||||||
Page properties | |||||||||||||||||||||||||
| Status | ||||||||||||||||||||||||
Tech review |
| ||||||||||||||||||||||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
| Any given number list |
. | ||||||||||
logicalExpression |
| A logical expression that returns
|
UI Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
This function returns a
|
Text list
UI Text Box | ||||
---|---|---|---|---|
| ||||
The function returns a | ||||
subtle | true | |||
title | number list |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
filterByPredicate(number list ltextList, boolean expression predicatelogicalExpression) #Output: NumberText list |
UI Expand | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
|
UI Expand | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
This function returns a
|
Issue list
UI Text Box | ||||
---|---|---|---|---|
| ||||
Variant for issue lists. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
filterByPredicate(issueList, logicalExpression) #Output: Issue list |
UI Expand | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||
|
UI Expand | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
The This function returns a an
|
UI Text Box | ||
---|---|---|
| ||
This is one of the most powerful functions in JWT since it combines filtering with boolean or logical expressions. To freshen up your knowledge or to get some inspiration head over to: |
Use cases and examples
Page properties report | ||||||
---|---|---|---|---|---|---|
|
Page properties | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
|
Page properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
|
Page properties | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
Returns a list with texts in l that validate predicate. Argument predicate is a boolean expression, where ^% is used for referencing string values in argument l. |