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 » Scripting Helpers
Home Search
 

Re: Checking a table

Previous Thread :: Next Thread 
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
20 Dec 2013 11:10 PM
[ Content Deleted ]
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
20 Dec 2013 11:13 PM
if MyTable.OMG == true and MyTable["OMG2"] == false then
Report Abuse
Preponderance is not online. Preponderance
Joined: 30 Sep 2009
Total Posts: 21293
20 Dec 2013 11:13 PM
if myTable[1] == true etc
Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
20 Dec 2013 11:14 PM
[ Content Deleted ]
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
20 Dec 2013 11:14 PM
Pre's wont work in this case.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
20 Dec 2013 11:14 PM
wazap is correct, Preponderance those are for numeric-named indices, these are obviously not numeric-based.
Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
20 Dec 2013 11:16 PM
[ Content Deleted ]
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
20 Dec 2013 11:17 PM
showing 2 possible ways you can format it.
Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
20 Dec 2013 11:17 PM
[ Content Deleted ]
Report Abuse
Preponderance is not online. Preponderance
Joined: 30 Sep 2009
Total Posts: 21293
20 Dec 2013 11:47 PM
theee fffffffff
i should stop foruming by 12am...

._.

sowwy
Report Abuse
juniorjfive is not online. juniorjfive
Joined: 05 Jan 2010
Total Posts: 671
21 Dec 2013 12:07 AM
MyTable = {["OMG"] = true, ["OMG2"] = false}

for i,v in pairs(MyTable) do
print(tostring(i)..' is',(v))
end

--

if MyTable.OMG and not MyTable.OMG2 then
print'geniuz'
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting 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