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}
|
1 |
{b = {2, 0, 5,
6}}
|
2 |
{c =
"Test"}
|
3 |
Curve Math Vectors | Result |
---|---|
N/A | N/A |
Comments
- 0
- Error
- 1
- Scalar
- 2
- Vector or array
- 3
- String or string array