[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
>                        Greater than Operator

 exp1 > exp2

    > is a relational operator. If the value of exp1 is greater than 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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson