﻿ VARIABLE ASSIGNMENT
TYL PROGRAMMING LANGUAGE
▶ VARIABLE ASSIGNMENT
Assign Scalar Variable by Function
Scalar variables can be assigned a value from function operations.

Say we have an `echo` function:
echo v: v
`echo` function have `v` parameter, and it returns what `v` gets.

Let's call it with a scalar variable:
num echo 21
echo v: v
`num` will get the result of `echo 21`, which is 21.

And in this Modulo program:
num 100
nummod2 modulo num 2
nummod3 modulo num 3
print num + ' modulo ' + 2 + ' = ' + nummod2
print num + ' modulo ' + 3 + ' = ' + nummod3
! number and divisor must be positive integral numbers
modulo number divisor:
number < divisor ? %% number
division number / divisor
integraldivision math.floor division
number - integraldivision * divisor
`nummod2` gets the result of `modulo` of 100 and 2.
In `modulo` function, `division` gets the division of `number` by `divisor`, and `integraldivision` gets the result of calling `math.floor` system function with `division` parameter.
PART 3