Game Development Community

TAB

by rennie moffat · in Torque Game Builder · 11/23/2009 (11:02 am) · 9 replies

Hi, this is a question regarding TAB.

I have seen it in a behavior, in the first if(!isObject()) {} statement where %spawnlocation = "Area" TAB "Edges"



I was wondering what this means as there isn't an instant listing in TDN.

About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
11/23/2009 (11:17 am)
Advice: read the TDN. "Read" is not equal to "use the search box".
If you have a question, go to the quickreference as a *strating* point (hint: "starting point" is not equal to "last resort").

Anyway, quote from the TorqueScript QuickReference (tdn.garagegames.com/wiki/TorqueScript_Quick_Reference):

Quote:
Operator - Name - Example - Explanation
TAB - Tab - $c TAB $d - Concatenates strings $c and $d into a single string separated by tab. Note: such a string can be decomposed with getField()
#2
11/23/2009 (11:23 am)
So what is the difference between this and SPC. Is SPC strictly for numbers while TAB (at least in the example I saw) separates words?
#3
11/23/2009 (11:46 am)
I will answer with three quotes.

From TorqueScript QuickReference (URL in previous post):
Quote:
Concatenates strings $c and $d into a single string separated by tab.
Note: such a string can be decomposed with getField()

From TorqueScript QuickReference (URL in previous post):
Quote:
Concatenates strings $c and $d into a single string separated by space.
Note: such a string can be decomposed with getWord()

From my previous post:
Quote:
If you have a question, go to the quickreference as a *strating* point (hint: "starting point" is not equal to "last resort").

Sorry if I sound rude. I really do enjoy to help, but I usually have very little time during work for TGB forums (eh), and I consider my free-time should be devoted to my wife and my real-life friends, therefore the lack of time to spend...
#4
11/23/2009 (11:52 am)
Ok,
Sorry so CAPS does not matter?




2. ok





3. no problem, but what is a last resort?



#5
11/23/2009 (3:33 pm)
Quote:what is a last resort

Explains everything.
#6
11/23/2009 (3:39 pm)
g thanks.

Anyhow, I have seen that TAB, @ and SPC all act as string operators if I am correct.

SPC for between words
TAB between numbers
and @between Commands and its variable, say getSpeed where speed is %speed.



#7
11/23/2009 (11:15 pm)
Because I don't want anybody to be confused:

'@', 'SPC', 'TAB', and 'NL' go between 2 strings and return a new string.

They don't act on words, numbers, commands, or variables. They simply go between 2 strings and return a new string as a result.
#8
11/24/2009 (3:11 am)
Excellent.

Thanks.
#9
11/24/2009 (4:46 am)
I had pointed you to string operators here already...