--- title: "is in list()" slug: "basic-is-in-list" updated: 2026-08-12T06:31:13Z published: 2026-08-12T06:31:13Z canonical: "docs.lobstersoftware.com/basic-is-in-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. # is in list() This function returns *true* if the value **a** is contained in the list **b**, otherwise *false* is returned. Alternatively, the position of the found value in the list can be returned via parameter **d**. ## Parameters | Parameter | Description | | --- | --- | | a | Value to look for. | | b | (optional) Name of the list. Default: *default* | | c | (optional) *true* if check condition is 'contains' instead of 'equals'*.* Default*: false* | | d | (optional) *true* if the function should return the position (index starts at 1) of the found value in the list. If the value is not found, the return value is still *false*. Default: *false* | ## Examples Defined is a list *myList* with the values {*value1*, *value2*}. | Parameter a | Parameter b | Parameter c | Parameter d | Result | | --- | --- | --- | --- | --- | | value1 | | false | | false | | value2 | myList | false | | true | | VALUE2 | myList | false | | false | | val | myList | true | | true | | value2 | myList | | true | 2 | | value3 | myList | | true | false |