check-type()

Prev Next

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