Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - >= greater than or equal to operator (relational) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 >=                  Greater Than or Equal To operator (relational)
------------------------------------------------------------------------------
 Syntax
   nNumber1 >= nNumber2

 Arguments
   nNumber1 is a numeric expression to compare to nNumber2.
   nNumber2 is a numeric expression to compare to nNumber1.

 Description
   The >= operator compares two numeric values and returns .t. if
   the first number is greater than or equal to the second; or .f. otherwise.

 Example
   #define EXAMPLE_OPERATOR
   #include example.hdr

   proc Test_932
   
   // numeric
   ? 2 >= 1                                          // prints .T.
   ? 1 >= 2                                          // prints .F.
   ? 1 >= 1                                          // prints .T.
   ? 2 >= 2                                          // prints .T.
   
   // character
   ? "b"  >= "a"                                     // prints .T.
   ? "ba" >= "a"                                     // prints .T.
   ? "a"  >= "ab"                                    // prints .F.
   
   // date
   ? ctod( "12/14/60" ) >= ctod( "12/14/98" )        // prints .F.
   
   endproc

   proc main
   Test_932()
   endproc

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