Sfairadora

  • Reference Guide

type

type(value)
Returns the type of the value passed as the parameter. If the parameter is an l-value, the function returns the type of the value actually stored in the referred data item. The result is always a free type.
Example 1:
var Union x;
...
x = "Abc";
...
if(type(x)==String)
...
Example 2:
var Real ? x = a/b;
if(type(x)==Error)
...

See Also