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: Find string in table

Previous Thread :: Next Thread 
Firebrand1 is not online. Firebrand1
Joined: 12 Feb 2009
Total Posts: 2692
13 Dec 2013 11:09 AM
I need the script to check every string in a table to make sure none of them match another string. How can I do this?
Report Abuse
cheesecake123456 is not online. cheesecake123456
Joined: 01 Jun 2009
Total Posts: 1529
13 Dec 2013 11:20 AM
local st = "random string"

tble = {"hello", "my", "name", "is", "bob"}

for _, v in pairs(tble) do
if v ~= table then
blablabla
elseif v == table then
print("oh nooo, we all gonna dieeee"
end
end

Report Abuse
cheesecake123456 is not online. cheesecake123456
Joined: 01 Jun 2009
Total Posts: 1529
13 Dec 2013 11:20 AM
Change table to st. XD
Report Abuse
Firebrand1 is not online. Firebrand1
Joined: 12 Feb 2009
Total Posts: 2692
13 Dec 2013 11:40 AM
Okay, so it would check all of the tble items before running blablabla?
Report Abuse
Firebrand1 is not online. Firebrand1
Joined: 12 Feb 2009
Total Posts: 2692
13 Dec 2013 11:42 AM
Or would it run blablabla for every string that didn't match?
Report Abuse
cheesecake123456 is not online. cheesecake123456
Joined: 01 Jun 2009
Total Posts: 1529
17 Dec 2013 01:44 PM
It would run blablabla for every string that doesn't match.
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