Assigning Values to Variables
CONCEPT: Computers must be told what value to assign to variables
CONCEPT: The general form of an assignment statement is
<variable name> <assignment symbol> <expression>
- Languages use different assignment symbols: = := ?
- Read assignment as “is assigned”, or “becomes” or “gets”
- All three components must always be present
CONCEPT: Fundamental property of assignment
The “flow” of information is always right-to-left
VB6: Some examples of variable assignment
- destination = 12
- changedVariable = value
Meta-brackets < > enclose language defining terms