36 posts
Posted 25 February 2013 - 09:27 AM
Sorry but all the time while I'm programming I have questions, so to not spam the forum with simple questions like the following I decided to make a thread where I can post every question that I have (Sorry if my english is bad in this sentence)
Question:
How can I separe variables in a print command? i.e: I want to print these variables: "2" and "3" (var1 and var2) I do not want to be together, but separated by a space, just like this: "2 3" not "23"
1214 posts
Location
The Sammich Kingdom
Posted 25 February 2013 - 09:40 AM
You just concatenate with a space.
hello = "Hello"
world = "World"
print(hello.." "..world)
671 posts
Location
That place over there. Y'know. The one where I am.
Posted 25 February 2013 - 09:42 AM
local var1 = 2
local var2 = 3
print(var1.." "..var2)
Would do exactly what you're asking.
36 posts
Posted 25 February 2013 - 10:21 AM
Thanks :D/>
871 posts
Posted 25 February 2013 - 10:40 AM
I'm not an admin or moderator, but I think I can safely speak for them to say that separate threads per question are still preferred. The threads should be about the questions; a single thread for your questions makes the thread about you, and if this trend were to grow, the forum would be clogged with "<blank's> questions" threads which would be completely unhelpful to someone searching the forum for their question rather than just reposting a question that's already been answered a hundred times - which is something we, along with the rest of the help-offering internet, strongly encourage.
:Edit: to clarify, if you're asking a series of questions related to a particular project, where there's important shared context, like your source, and the suggestions that have already been made, then stick with the same thread. But if they are fundamentally unrelated questions, with no shared context, they should be separate threads with meaningful titles related to the question.
1511 posts
Location
Pennsylvania
Posted 25 February 2013 - 11:10 AM
Don't worry. If the necromancers arrive, i'm sure a staff will be happy to stop the black magic ;)/>
36 posts
Posted 25 February 2013 - 02:23 PM
Ok, sorry, just i thought that a simple question like that above will spam the forum
1511 posts
Location
Pennsylvania
Posted 25 February 2013 - 02:39 PM
Ok, sorry, just i thought that a simple question like that above will spam the forum
Most likely won't.
2005 posts
Posted 26 February 2013 - 02:45 AM
If you're really concerned that a question is so simple that it would just be spam, then search a little harder for the answer, using the
Lua 5.1 manual, the wiki, and of course the forum.
If you can't find the answer, then it probably isn't spam…unless everyone else that asked the question decided that they didn't want to use a title that mentioned the subject of the question.