Returns the type of the operand as a string. The return value is one of "nil", "bool", "num", "str", "map", "list", "uri", or "xml".
1.8.3 or later.
To retrieve the type of a number:
{{ typeof 123 }}
num
To check if a value is a list:
{{ typeof [ 1, 2, 3 ] == "list" }}
true
To check if two values have the same type:
{{ typeof [ 1, 2, 3 ] == typeof nil }}
false
Viewing Details: