Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b><= less than or equal to operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
<=                       Less than or Equal to Operator

 exp1 <= exp2

    <= is a relational operator. If the value of exp1 is either less than
    that of exp2 or equal to that of exp2, the result of exp1 <= exp2 is
    -1; otherwise the result is 0. In IF statements, BASIC regards 0 as
    equivalent to FALSE and all nonzero values as equivalent to TRUE.

    If the operands are string expressions, BASIC compares the ASCII
    values of the first character in each expression. If the first
    characters have the same ASCII value, BASIC then evaluates the second
    characters, and so on. If one string terminates before the other, and
    the characters in each string are identical to that point, the shorter
    string is considered "less" than the longer one.

   exp1,exp2    Any numeric or string expression, but exp1 and exp2 must
                either both be numeric or both be strings; otherwise a
                Type Mismatch error occurs.

See Also: = <> < > >= Precedence

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