Welcome to episode 4 of 'Learning Lua with MERC!'
We are going to focus on the basic math of Lua; and a few new commands.
[myVar] is a command to tell your computer program to use a temporary memory storage, this command will allow you to store and use the equations and operators efficiently.
-
1 + 2 = 3 This type of equation is nothing new to us...Your computer will look at this statement as closed and will not allow the use of variables.
-
3 = 1 + 2 is how you will need to use this statement as a variable(essentially backwards)
Computer response = myVar + myVar[2]
New comments
1 week 2 days ago
1 week 3 days ago
3 weeks 3 days ago
3 weeks 5 days ago
6 weeks 4 days ago
6 weeks 4 days ago
6 weeks 5 days ago
6 weeks 5 days ago
9 weeks 11 hours ago
9 weeks 12 hours ago