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 operator (relational) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 >                   Greater Than 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 the second; or .f. otherwise.

 Example
   #define EXAMPLE_OPERATOR
   #include example.hdr

   proc Test_931
   
   // numeric
   ? 2 > 1                                          // prints .T.
   ? 1 > 2                                          // prints .F.
   
   // 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_931()
   endproc

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