Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>>= greater than or equal -- binary (relational)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
>=             Greater than or equal -- binary            (Relational)


Syntax:        <exp1> >= <exp2>

Type:          All

Operands:      <exp1> and <exp2> are expressions of any type to
               be compared.

Description:   The >= (greater than or equal) is a binary operator that
               compares two values of the same data type and returns
               true (.T.) if <expC1> is greater than or equal to
               <expC2>.

               Character: The comparison is based on the underlying
               ASCII code.  Remember that ASCII codes for alphabetic
               characters are ascending, i.e. the code for "A" is 65 and
               the code for "Z" is 90.

               Date: Dates are compared according to the underlying
               date value.

               Logical: True (.T.) is always greater than false
               (.F.).

               Memo: Treated the same as character.

               Numeric: Compared based on magnitude.


----------------------------------- Examples -------------------------------

   * Character.
   ? "Z"  >= "A"                        && Result: .T.
   ? "ZA" >= "A"                        && Result: .T.
   ? "Z"  >= "AZ"                       && Result: .T.

   * Date.
   ? CTOD("12/12/88") >=;
      CTOD("12/11/88")                  && Result: .T.

   * Logical.
   ? .T. >= .F.                         && Result: .T.

   * Numeric.
   ? 2 >= 1                             && Result: .T.
   ? 1 >= 2                             && Result: .F.


See Also: $ < = == >= <= <> Expr_error()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson