--- title: "a equals empty ? true b, false c" slug: "basic-switch-on-empty" updated: 2026-08-10T06:14:42Z published: 2026-08-10T06:14:42Z canonical: "docs.lobstersoftware.com/basic-switch-on-empty" --- > ## 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 empty ? true b, false c Checks if the empty flag of **a** is set. If yes, **b** is returned, **c** otherwise. ## Parameters | Parameter | Description | | --- | --- | | a | Value to be checked. | | b | Value to be returned if the empty flag is set. | | c | Value to be returned if the empty flag is not set. | ## Example | Parameter a | Empty Flag | Parameter b | Parameter c | Result | | --- | --- | --- | --- | --- | | 123 | false | Values does not exist | Value exists | Value exists | | 10.12.2017 | true | Invalid date | Date is valid | Invalid date |