ClassesClasses | | Operators

tuple_greater_equaltuple_greater_equalTupleGreaterEqualTupleGreaterEqual (Operator)

Name

tuple_greater_equaltuple_greater_equalTupleGreaterEqualTupleGreaterEqual — Test whether a tuple is greater or equal to another tuple.

Signature

tuple_greater_equal( : : T1, T2 : Greatereq)

Herror tuple_greater_equal(const Hlong T1, const Hlong T2, Hlong* Greatereq)

Herror T_tuple_greater_equal(const Htuple T1, const Htuple T2, Htuple* Greatereq)

void TupleGreaterEqual(const HTuple& T1, const HTuple& T2, HTuple* Greatereq)

HTuple HTuple::TupleGreaterEqual(const HTuple& T2) const

static void HOperatorSet.TupleGreaterEqual(HTuple t1, HTuple t2, out HTuple greatereq)

HTuple HTuple.TupleGreaterEqual(HTuple t2)

Description

tuple_greater_equaltuple_greater_equalTupleGreaterEqualTupleGreaterEqualTupleGreaterEqual tests whether the input tuple T1T1T1T1t1 is greater or equal to T2T2T2T2t2. A tuple T1T1T1T1t1 is said to be greater or equal to a tuple T2T2T2T2t2, if T1T1T1T1t1 is not less than T2T2T2T2t2. A tuple T1T1T1T1t1 is said to be less than a tuple T2T2T2T2t2, if T1T1T1T1t1 has been found to be less when comparing it elementwise to T2T2T2T2t2 or if the first min(|T1|,|T2|) elements are equal and T1T1T1T1t1 has got less elements than T2T2T2T2t2.

With the elementwise comparison, the elements of T1T1T1T1t1 and T2T2T2T2t2 are compared one by one. If the two elements are equal, the next pair of elements will be examined. If the element of T1T1T1T1t1 is greater than that from T2T2T2T2t2, the result is 1 and the comparison will be aborted. If the element of T1T1T1T1t1 is less than that from T2T2T2T2t2, the result is 0 and the comparison will be aborted. If all elements have been tested and if all were equal, the result is 1.

As a precondition for comparing the tuples elementwise two corresponding elements must either both be (integer or floating point) numbers or both be strings. Otherwise tuple_greater_equaltuple_greater_equalTupleGreaterEqualTupleGreaterEqualTupleGreaterEqual returns an error.

Exception: Empty input tuples

If one input tuple is empty and the other is not, the tuple that is not empty is considered greater than the empty one.

HDevelop In-line Operation

HDevelop provides an in-line operation for tuple_greater_equaltuple_greater_equalTupleGreaterEqualTupleGreaterEqualTupleGreaterEqual, which can be used in an expression in the following syntax:

Greatereq := T1 >= T2

Execution Information

Parameters

T1T1T1T1t1 (input_control)  number(-array) HTupleHTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)

Input tuple 1.

T2T2T2T2t2 (input_control)  number(-array) HTupleHTupleHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*)

Input tuple 2.

GreatereqGreatereqGreatereqGreatereqgreatereq (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Result of the comparison of the input tuples.

Alternatives

tuple_greatertuple_greaterTupleGreaterTupleGreaterTupleGreater, tuple_lesstuple_lessTupleLessTupleLessTupleLess, tuple_less_equaltuple_less_equalTupleLessEqualTupleLessEqualTupleLessEqual, tuple_equaltuple_equalTupleEqualTupleEqualTupleEqual, tuple_not_equaltuple_not_equalTupleNotEqualTupleNotEqualTupleNotEqual, tuple_equal_elemtuple_equal_elemTupleEqualElemTupleEqualElemTupleEqualElem, tuple_not_equal_elemtuple_not_equal_elemTupleNotEqualElemTupleNotEqualElemTupleNotEqualElem, tuple_less_elemtuple_less_elemTupleLessElemTupleLessElemTupleLessElem, tuple_greater_elemtuple_greater_elemTupleGreaterElemTupleGreaterElemTupleGreaterElem, tuple_less_equal_elemtuple_less_equal_elemTupleLessEqualElemTupleLessEqualElemTupleLessEqualElem, tuple_greater_equal_elemtuple_greater_equal_elemTupleGreaterEqualElemTupleGreaterEqualElemTupleGreaterEqualElem

Module

Foundation


ClassesClasses | | Operators