--- title: "replace value(a, list b, list c, [delim d])" slug: "basic-replace-value-by-list" updated: 2026-08-12T08:39:09Z published: 2026-08-12T08:39:09Z canonical: "docs.lobstersoftware.com/basic-replace-value-by-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. # replace value(a, list b, list c, [delim d]) This function searches value **a** in the comma separated [Token list, list, map](/v1/docs/en/intro-concepts-lists-maps) **b**. If **a** is found, the value at the same position in the comma-separated token list **c** is returned. If **a** is not found in **b**, an empty text will be returned. ## Parameters | Parameter | Description | | --- | --- | | a | Search value. | | b | Comma-separated list of values. | | c | Comma-separated list of replacement values. | | d | (optional) Delimiter for both lists. Default: , | ## Examples | Parameter a | Parameter b | Parameter c | Parameter d | Result | | --- | --- | --- | --- | --- | | D | D,A | Germany,Austria | | Germany | | A | D,A | Germany,Austria | | Austria | | I | D,A | Germany,Austria | | |