This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Custom Boot Maker's profile picture

Understanding Varibles

Started by Custom Boot Maker, 10 June 2012 - 10:01 AM
Custom Boot Maker #1
Posted 10 June 2012 - 12:01 PM
Say if we made a password it will be this

Password = PasswordHere -We named this Varible the password
Print("TypeWhatUGonnaSay") -Print Means Write on screen (not real print)
input = read() -This Mean It allows the Player to type what the password is then it reads wat you said
if input == password then -This means if password is correct then
Print("TextHere")
else
os.shutdown() -means shutdown the computer (NotRealPCgamePc)



This is the ver Basics is u found helpfull Put A: :)/>/> if not: :(/>/>
D3matt #2
Posted 10 June 2012 - 06:24 PM
The first brick on the path to understanding is proper spelling.
Custom Boot Maker #3
Posted 11 June 2012 - 09:53 PM
The first brick on the path to understanding is proper spelling.
At Least IM Saying It
Noodle #4
Posted 20 June 2012 - 10:14 AM
You should add that you need to re-define the variables when you or the program changes them.
Actually a lot could be added.