TYL PROGRAMMING LANGUAGE
▶ VARIABLE ASSIGNMENT
Assign Scalar Variable by Another Variable
Variables can be assigned by the value of another scalar variable:
print 'Declare and assign numa and numb variables'
numa 21
numb 22
print numa
print numb
print 'Assign the value of numa to numb'
numb numa
print numa
print numb
Declare and assign numa and numb variables
21
22
Assign the value of numa to numb
21
21
In line numb numa, the value of numa is assigned (copied) to numb. Note that though the variables have the same value, they are independent variables.

Variables can be assigned a value from list operations:
nums 21 22 23
secondnum nums 1
addednum nums <- 24
removednum nums ->
print 'secondnum: ' + secondnum
print 'addednum: ' + addednum
print 'removednum: ' + removednum
secondnum: 22
addednum: 24
removednum: 21
secondnum gets the second item of nums.
addednum gets the added number 24.
removednum gets the removed item from nums, which is the first item.
PART 2
PART 4