--- title: "a equals true ? true b, false c" slug: "basic-switch" updated: 2026-08-10T06:54:00Z published: 2026-08-10T06:54:00Z canonical: "docs.lobstersoftware.com/basic-switch" --- > ## 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 true ? true b, false c Checks if **a** is "true" (boolean value) and returns **b** if it is, otherwise **c** is returned. ## Parameters | Parameter | Description | | --- | --- | | a | Value to compare to "true". | | b | Return value if equal. | | c | Return value if not equal. | ## Example | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | | equal | not equal | not equal | | false | equal | not equal | not equal | | true | equal | not equal | equal |