tuple_sem_type
— Return the semantic type of a tuple.
tuple_sem_type
returns the semantic type of the input tuple
T
.
The type is returned as a string value in the output parameter
SemType
.
If T
contains only valid handles of the same type, the
corresponding semantic type of the handles is returned.
If it contains only valid or invalid handles,
or handles of different type, 'handle' is returned.
If T
contains elements of different types, 'any' is
returned.
If the input tuple is empty, the operator returns 'any' .
T
(input_control) tuple(-array) →
(handle / real / integer / string)
Input tuple.
SemType
(output_control) string →
(string)
Semantic type of the input tuple as a string.
create_matrix (3, 3, 0, MatrixID) tuple_sem_type (MatrixID, SemType) * SemType == 'matrix' (Handle of specific type) clear_handle (MatrixID) tuple_sem_type (MatrixID, SemType) * SemType == 'handle' (Cleared handle) tuple_sem_type ([MatrixID,123], SemType) * SemType == 'any' (Mixed types)
If the parameters are valid, the operator
tuple_sem_type
returns the value 2 (H_MSG_TRUE).
tuple_is_int
,
tuple_is_number
,
tuple_is_real
,
tuple_is_string
,
tuple_type
Foundation