Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>= equal to/assignment</b> http://www.X-Hacker.org [<<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

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