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 » Scripters
Home Search
 

Can you add values to a dictionary--

Previous Thread :: Next Thread 
121bytes is not online. 121bytes
Joined: 20 Aug 2014
Total Posts: 250
03 Nov 2015 08:40 PM
Other than manually, not 'tab = {[Value] = true}' but like you can through a regular table?



yudodis
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
03 Nov 2015 08:43 PM
if I understood your question correctly:

local tab = {}

tab.bool = true

for k, v in pairs(tab)do
print(k.."-"..v)
end
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
03 Nov 2015 08:43 PM
and you may have to use tostring there, dunno if you can print out a bool without an error
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
03 Nov 2015 09:00 PM
Print and concatenation both call tostring, afaik.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Nov 2015 09:16 PM
NO LOL, it would be really stupid if concatenation also called tostring.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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