Home    Libraries > library:typeor > TypeOr
prev next
View that matches a set of types (or views).

View TypeOr[ ]

@x:view TypeOr[%types]

%types A list of types (or views).

@x:view @x:func sys:Is(v~string)~boolean


View Function sys:Is

@x:func sys:Is(v~string)~boolean
v value to test

Semantics

The result is
true if v has any of the types in the list of types.

Examples


   @x:const BooleanInt := TypeOr[boolean,int,void];
   @x:var bi~BooleanInt := null;
   bi := 3;
   bi := false