--- title: "a equals b ? true c, false d" slug: "basic-switch-value" updated: 2026-08-10T06:11:23Z published: 2026-08-10T06:11:23Z canonical: "docs.lobstersoftware.com/basic-switch-value" --- > ## 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. # a equals b ? true c, false d Checks if **a** equals **b** and returns **c**, otherwise **d** is returned. The check depends on the [Data types](/v1/docs/en/intro-concepts-data-types) of parameters **a** and **b** (see details there). ## Parameters | Parameter | Description | | --- | --- | | a | Comparison value 1. | | b | Comparison value 2. | | c | Return value if **a** equals **b**. | | d | Return value if **a** is not equal to **b**. | ## Examples | Parameter a | Parameter b | Parameter c | Parameter d | Result | | --- | --- | --- | --- | --- | | value | value | they are equal | they are not equal | they are equal | | value | novalue | they are equal | they are not equal | they are not equal |