assignment

 
Syntax

lvalue  = expression

Description

This statement changes the value of the variable, string, array element or hardware register lvalue with that of expression.
Example

DIM AB(10) AS STRING
 
AB = "this is a string"

AB(8) = "1"   ' makes it    this is 1 string
 
IO(0) = 1        'set pin 0 to be high
 
x = 100+(x*z-3)
Differences from other BASICs

See also