See also: count (Number of list entries) (counting list entries), numFilter (Number filter) (filter numerical values)
The $notEmptyFilter function extracts all non-empty values from the specified parameters. Entries of parameters that are lists themselves are also passed through and included in the result quantity.
Tooltip
Syntax: $notEmptyFilter(a[,b[,c[, ... ]]])
Parameter:$notEmptyFilter accepts any number of parameters, and for each one:
f the parameter is not a list and is not empty, null or undefined, it is included in the result list.
If the parameter is a list, all entries of this list which are not empty, null or undefined are included in the result list.
Returns a list of all non-empty values from the input quantity.
Example: $notEmptyFilter(0,,2,abc,$null) – Returns a list with the following entries: 0,2,abc
Syntax
$notEmptyFilter(a[,b[,c[, ... ]]])
Parameter
$notEmptyFilter accepts any number of parameters, and for each one:
If the parameter is not a list and is not empty, null or undefined, it is included in the result list.
If the parameter is a list, all entries of this list which are not empty, null or undefined are included in the result list.
Return value
A list of all non-empty values from the input quantity.
Example
Syntax | Result | Remarks |
|---|---|---|
$notEmptyFilter(0,,2,abc,$null) | [0,2,abc] | The second parameter is empty, the last is null. This means that they are not listed in the result list. |
$notEmptyFilter($el(5,true)) | All non-empty values of all duplicates of the element with ID 5 as a list. | Only applicable in forms. |
Application example with multi-comboboxes in one form
A list of all selected values of three different multi-comboboxes is to be extracted. See the following configuration (element IDs are in the labels).
Clicking on the button executes a calculation behavior, the result of which is displayed with a Show alert action.
The following expression is given:
$notEmptyFilter($el(5),$el(6),$el(7)) |
In the following the form is started and different values in the multi-comboboxes are selected:

Afterwards, the information is displayed after clicking the button.

So the result list of $notEmptyFilter returned as expected [4,2,5,3].