generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Building Helpers
Home Search
 

Re: Tostring() question

Previous Thread :: Next Thread 
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
26 Aug 2014 01:34 PM
Say I have this table:

local a = {
Stone = {1, 2, 3},
}

Could I do this?

for i, v in pairs(a) do
if v[3] == 3 then
print(tostring(v))
end
end

Would that return Stone?
Report Abuse
Zalchire is not online. Zalchire
Joined: 01 May 2011
Total Posts: 1658
26 Aug 2014 01:43 PM
go to SH

this is not building related
Report Abuse
llharry is not online. llharry
Joined: 31 Aug 2008
Total Posts: 46
27 Aug 2014 07:48 AM
Wrong board.
But to answer your question, it would return the table 'stone'.
Not the string "stone" in case that's what you meant.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image