Operator > (Greater Than)
 
Compares an expression greater than another expression

Syntax
Usage

result = lhs > rhs

Parameters

lhs
The left-hand side expression to compare to.
rhs
The right-hand side expression to compare to.
T
Any pointer type.

Return Value

Returns negative one (-1) if the left-hand side expression is greater than the right-hand side expression, or zero (0) if less than or equal.

Description

Operator > (Greater than) is a binary operator that compares an expression greater than another expression and returns the result - a boolean value in the form of an Integer: negative one (-1) for true and zero (0) for false. The arguments are not modified in any way.

This operator can be overloaded to accept user-defined types as well.

Example

Operator <= (Less than or equal) is complement to Operator > (Greater than), and is functionally identical when combined with Operator Not (Bit-wise Complement).

   If (420 > 69) Then Print "(420 > 69) is true."
   If Not (420 <= 69) Then Print "not (420 <= 69) is true."


Dialect Differences

  • In the -lang qb dialect, this operator cannot be overloaded.

Differences from QB

  • none

See also