Scalar FunctionsType Functions
gettype
Return the runtime type of a value as a string.
Syntax
gettype(value)Parameters
Prop
Type
Returns: string
Examples
Example 1
print gettype(1), gettype(1.5), gettype("s"), gettype(true), gettype(dynamic([1, 2])), gettype(
dynamic({"a":1})
)| print_0 (string) | print_1 (string) | print_2 (string) | print_3 (string) | print_4 (string) | print_5 (string) |
|---|---|---|---|---|---|
| long | real | string | bool | array | dictionary |