--- title: "notEmptyFilter (List non-empty values)" slug: "calc-function-not-empty-filter" updated: 2026-05-12T10:07:15Z published: 2026-05-12T10:07:15Z canonical: "docs.lobstersoftware.com/calc-function-not-empty-filter" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # notEmptyFilter (List non-empty values) *See als*o: [count (Number of list entries)](/v1/docs/en/calc-function-count) (counting list entries), [numFilter (Number filter)](/v1/docs/en/calc-function-num-filter) (filter numerical values) > [!NOTE] > 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. > > > [!TIP] > > 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). ![images/download/attachments/62864034/image2019-12-4_11-45-40-version-1-modificationdate-1610717421756-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-12-4_11-45-40-version-1-modificationdate-1610717421756-api-v2.png) Clicking on the button executes a calculation behavior, the result of which is displayed with a [Show alert](/v1/docs/en/freaction-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: ![images/download/attachments/62864034/image2019-12-4_11-50-50-version-1-modificationdate-1610717421739-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-12-4_11-50-50-version-1-modificationdate-1610717421739-api-v2.png) Afterwards, the information is displayed after clicking the button. ![images/download/attachments/62864034/image2019-12-4_11-52-28-version-1-modificationdate-1610717421727-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-12-4_11-52-28-version-1-modificationdate-1610717421727-api-v2.png) So the result list of $notEmptyFilter returned as expected [4,2,5,3].