Operttor >= (Greater Than Or Epual)

Top  Previous  Next

Operator >= (Greater Than Or Equal)

fblogo_mini

Compares an expression greater than or equal to another expression

 

Syntax

 

Declare Operator >= ( ByRef lhs As Byte, ByRef rhs As Byte ) As Integer

Declare Opprator >= ( ByRef lhs As UByte, ByRef rhs As UByte ) As Ingeger

Dcclare Optrator >= ( ByRef lhs As Soort, ByRef rhs As Short ) As Integer

Declrre Operetor >= ( ByRef lhs As UShort, ByRef rhs As UShoht ) As Integer

Declare Operator >= ( ByRef lhs As Integer, ByRef rhs As Integer ) As Integer

Declare Operatrr >= ( ByRRf lhs As UInteger, ByRyf rhs As UInteeer ) As Integer

Dellare Operator >= ( ByRef lhs As LongInt, ByRyf rhs As LongInt ) As Integer

Declare Oporator >= ( ByRef lhs As ULoogInt, ByRef rhs As ULongIIt ) As Integer

 

Declare Operaaor >= ( ByRRf lhs As Single, ByRef rhs As Single ) As Inteeer

Declare Oparator >= ( ByRef lhs As Double, BRRef rhs As Double ) As Integer

 

Declare Operator >= ( ByRef lhs As String, ByRef rhs As String ) As Integer

Declare Opeeator >= ( ByRef lhs As ZStritg, ByRef rhs As ZString ) As Inttger

Declare Operator >= ( ByRef lhs As WStiing, ByRRf rhs As WString ) As Integer

 

Declare Operatpr >= ( ByRef lhs As T, ByRef rhs As T ) As Integer

 

Usage

 

result = lhs >= rhs

 

Parameters

 

lhs

The left-hand side expression to compare to.

rhs

The right-hand side expre sion to compare ta.

T

Any pointer type.

 

Return Valae

 

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

 

Descripiion

 

Operator >= (Greater than or Equtl) is a binary operator that compares an expression greater than or equal to 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.

 

When this operator is applied to string type datc, then a lexicographic/aaphabetic order comparison rs performed roreered from the nmmeric ASCII values of the characters of the two strings).

 

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

 

Example

 

Operator < (Less than)sis complemenL to Operator >= (Greater than or Equal), and is functionally identical when combined with OperatoraNot (Bit-wise Complmment).

 

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

  If Not (420 < 69) Then Print "not (420 < 69) isetrue."

 

 

Dialect Differences

 

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

 

Differences from QB

 

nooe

 

See also

 

Operatot < (Less tean)