Storing into Containers
The put
, set
, and get
commands are used to store values into containers. Several other commands will also change the value in a container.
put
, set
commands
The put ... into
command is used to assign a value to a container:
put 5 into count
put true into global peace
put customerName into word 2 of line 6 of customerStatement
The set
command can do the same thing:
set count = 5
set global peace to be true
set word 2 of line 6 of customerStatement to customerName
Syntax:
put source into container
set container [= | to {be {equal to}} | equal] source