[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
=                        Equal to/Assignment

    Equal to

 exp1 = exp2

    The = operator is a relational operator. If exp1 has the same value as
    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.

   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.

    Assignment

 [LET] var = exp1

    As an assignment operator, = stores the value of exp1 in variable var.
    The keyword LET is optional (and is usually omitted).

         var    A legal variable name, of any type.

        exp1    Any numeric 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