System.TypeOf - Manhunter07/MFL GitHub Wiki

Declaration

function TypeOf(Value): System.TypeKind = \built-in\

Description

The TypeOf function in the System package allows the determination of a value's data type. The result will be a positive integer (supported by PosInt) between 0 and 6. You find a list of possible return values below.

Value Type kind contant Data type
0 NullType Null values
1 ReferenceType Reference
2 BooleanType Boolean
3 NumberType Number
4 StringType String
5 ArrayType Array
6 RecordType Record

See also