tuple_select_mask — Select in mask specified elements of a tuple.
tuple_select_mask selects one or more single elements of the tuple Tuple and returns them with Selected. For every element Mask determines the corresponding element to select. If the value is greater than 0, the appropriate element is selected. Thus the length of the two input tuples has to be equal and Mask may only contain integer or float values.
If both input tuples are empty, the operator returns an empty tuple. If only one of the input tuples is empty and the other is not, an exception is raised.
HDevelop provides an in-line operation for tuple_select_mask, which can be used in an expression in the following syntax:
Selected := select_mask(Tuple, Mask)
> 0 specifies the elements to select.
Selected tuple elements.
tuple_first_n, tuple_last_n, tuple_str_bit_select, tuple_concat, tuple_select, tuple_select_range, tuple_select_rank