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 - < less than operator (relational) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 <                   Less 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 less than the second.

 Example
   #define EXAMPLE_OPERATOR
   #include example.hdr

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

   proc main
   Test_933()
   endproc

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