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

 Example
   #define EXAMPLE_OPERATOR
   #include example.hdr

   proc Test_934
   
   // numeric
   ? 2 <= 1                                         // prints .F.
   ? 1 <= 2                                         // prints .T.
   ? 1 <= 1                                         // prints .T.
   ? 2 <= 2                                         // prints .T.
   
   // character
   ? "a"  <= "a"                                    // prints .T.
   ? "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_934()
   endproc

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