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

Concatenate string doesnt work?

Started by ryarsh, 08 November 2012 - 06:41 PM
ryarsh #1
Posted 08 November 2012 - 07:41 PM
is it just me or do no Concatenate strings work?
chiloxsan #2
Posted 08 November 2012 - 07:45 PM
Can you please explain on how you're trying to concatenate the strings?
ryarsh #3
Posted 08 November 2012 - 07:59 PM
local x = Hello
local z = Mate
print("x.." "..z")

thats how ive been trying
ryarsh #4
Posted 08 November 2012 - 08:01 PM
also, if your helping can you tell me how i can make my password show up as * instead of letters,
chiloxsan #5
Posted 08 November 2012 - 08:02 PM
Here is your fixed code:

local x = "Hello"
local z = "Mate"
print(x .. z)

For input in read to show as stars, use read("*").

Also, please use code-tags: The <> next to the picture button in the editor.
ryarsh #6
Posted 08 November 2012 - 08:31 PM
thanks, i owe u one :P/>/>