Click above to get retro games delivered to your door ever month!

= Equal to/AssignmentEqual toexp1 = exp2The = operator is a relational operator. Ifexp1has the same value asexp2, the result ofexp1=exp2is -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,exp2Any numeric or string expression, butexp1andexp2must either both be numeric or both be strings; otherwise a Type Mismatch error occurs.Assignment[LET] var = exp1As an assignment operator, = stores the value ofexp1in variablevar. The keyword LET is optional (and is usually omitted).varA legal variable name, of any type.exp1Any numeric expression, butexp1andexp2must either both be numeric or both be strings; otherwise a Type Mismatch error occurs.