FANDOM


Variables are saying something is another thing, such as a letter, like X for X coordinates on a screen, that can be defined as 1, that would be column 1 on a screen, or 5 is = 2, you could write both of these like this:

5 = 2

X = 1

Loops, meaning code going on for an infinite amount of time until something triggers it to stop, like it calculates something for 3 loops, (in computercraft I guess that would be 3 ticks) until it figures it out and triggers a variable or if statement to something related to this:

while true do

calculated = false

if(calculated = false) then

calculate()

else

calculated = true

end

so what its doing is looking for the variables boolean, then determining if its that, do that then if its that, do that other or same thing.

the "while true do" is the key of most loops, and since they have a while statement in them, the program in the loop needs to be:

indented, and such needs to have end(s)

Leave a comment for help, questions and if it helped :)

-bluebird173

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.