--- title: "add to list(unique value a, name of list b, [skip empty c])" slug: "basic-add-to-list" updated: 2026-08-10T07:35:57Z published: 2026-08-10T07:35:57Z canonical: "docs.lobstersoftware.com/basic-add-to-list" --- > ## 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(unique value a, name of list b, [skip empty c]) Inserts value ***a*** into the list ***b***, but only if it is not already contained, otherwise the list remains unchanged. The return value always is value ***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 a 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 | No, because value already exists in list. | | Hello (empty flag: true) | MyList | false | Hello | Yes. | | Hällo (empty flag: true) | MyList | true | Hällo | No. |