--- title: "add to list(value a, name of list b, [skip empty c])" slug: "basic-add-to-list-2" updated: 2026-08-10T07:39:53Z published: 2026-08-10T07:39:53Z canonical: "docs.lobstersoftware.com/basic-add-to-list-2" --- > ## 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. # add to list(value a, name of list b, [skip empty c]) Adds value **a** into the list with name **b**, even if the value already exists in the list. The return value of the function is always **a**. ## Parameters | Parameter | Description | | --- | --- | | a | Value to be added. | | b | Name of the list (if the list does not exist, it is created). Default: *default* | | c | (optional) "true", if values with set Empty Flag should not be added to the list. Default: "false". **NOTE:** Please note that if the parameter is set to "false", values with a set [Empty flag](/v1/docs/en/intro-concepts-empty-flag) are added to the list. | ## Example | Parameter a | Parameter b | Parameter c | Result | Value added to list | | --- | --- | --- | --- | --- | | Hallo (empty flag: false) | MyList | | Hallo | Yes. | | Hallo (empty flag: false) | MyList | | Hallo | Yes. **NOTE:** The list MyList now contains the value Hallo twice. | | Hello (empty flag: true) | MyList | false | Hello | Yes. | | Hällo (empty flag: true) | MyList | true | Hällo | No. |