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

2 diffrent inputs

Started by nirokid, 16 September 2012 - 08:35 PM
nirokid #1
Posted 16 September 2012 - 10:35 PM
Can you have more than one input( or readers)?
like when you have a login field you have to write an username and a password. so how is it possible to get these two inputs?
MysticT #2
Posted 16 September 2012 - 10:45 PM
You get one and then the other.
Exmaple:

write("Enter first input: ")
local input1 = read()
write("Enter second input: ")
local input2 = read()
print("You entered ", intput1, " and then ", input2)
nirokid #3
Posted 16 September 2012 - 10:50 PM
thank you very much :)/>/>