--- title: "add to list(a,b,c, [skip empty d])" slug: "basic-token-to-list" updated: 2026-08-10T07:19:10Z published: 2026-08-10T07:19:10Z canonical: "docs.lobstersoftware.com/basic-token-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(a,b,c, [skip empty d]) Inserts every token (see [Token list, list, map](/v1/docs/en/intro-concepts-lists-maps)**)** from **a**, separated by delimiter **c** into the list **b**. The list is emptied first. The return value of the function is the number of entries added to the list. ## Parameters | Parameter | Description | | --- | --- | | a | Tokens to add. | | b | Name of list. Default: "default". | | c | Delimiter of tokens (use "\NL" for linefeed). | | d | (optional) "true", if values with a set empty flag should not be added to the list. Default: "false". | ## Example | Parameter a | Parameter b | Parameter c | Parameter d | Result | | --- | --- | --- | --- | --- | | a*b*c | MyList | * | | 3 | After the function has been executed, the list "MyList" contains the values "a", "b" and "c".