--- title: "check-type()" slug: "basic-check-return-type" updated: 2025-09-17T19:20:03Z published: 2025-09-22T09:16:08Z canonical: "docs.lobstersoftware.com/basic-check-return-type" --- > ## 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. # check-type() Checks if the data type of value **a** is the same as specified in **b**. The data type in **b** is represented by a number (see the following table). | Data type | Value in b | | --- | --- | | String | 0 | | Integer | 1 | | Double | 2 | | Date | 3 | | Boolean | 4 | | Float | 5 | | BigDecimal | 6 | | BigInteger | 7 | | Timestamp | 8 | | Blob | 9 | ## Parameters | Parameter | Description | | --- | --- | | a | Value to be checked, e.g. a variable or the result of a function. | | b | The type (see above for valid values). | ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | Variable of data type String | 0 | true | | Result of a function of data type Date | 3 | true | | Result of a function of data type Date | 8 | false |