typeof

Returns the type of variable and identifies it as scalar, vector, or a string.

Syntax

typeof(variable)

Argument

variable
The variable to be checked.

Example

Templex Expression Result
{a = 1}

{typeof(a)}

1
{b = {2, 0, 5, 6}}

{typeof(b)}

2
{c = "Test"}

{typeof(c)}

3
Curve Math Vectors Result
N/A N/A

Comments

There are four possible results:
0
Error
1
Scalar
2
Vector or array
3
String or string array