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
 

Detect if Variable is a String?

Previous Thread :: Next Thread 
TheNickmaster21 is not online. TheNickmaster21
Joined: 04 Oct 2008
Total Posts: 9490
01 Aug 2015 01:42 PM
How can I detect if a given variable is nil, a table, or a String?
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
01 Aug 2015 01:43 PM
type()
Report Abuse
ImperialOutcast is not online. ImperialOutcast
Joined: 24 Nov 2009
Total Posts: 12054
01 Aug 2015 01:44 PM
Look it up on Wiki m8....



http://wiki.roblox.com/index.php?title=Type#type
Report Abuse
TheNickmaster21 is not online. TheNickmaster21
Joined: 04 Oct 2008
Total Posts: 9490
01 Aug 2015 01:55 PM
m8 I did look it up on the wiki and I didn't find the type function. Thanks epicbreaker
Report Abuse
ImperialOutcast is not online. ImperialOutcast
Joined: 24 Nov 2009
Total Posts: 12054
01 Aug 2015 01:56 PM
M8 I gave you the link.... #Dumb
Report Abuse
Zonkman31 is not online. Zonkman31
Joined: 22 Feb 2013
Total Posts: 6471
01 Aug 2015 02:07 PM
if a == tostring(a) then
print("a is string")
end

I appreciate donations:
20 R$: http://www.roblox.com/Humble-Donation-item?id=278159282 ☺
60 R$: http://www.roblox.com/Medium-Donation-item?id=278159657 😀
180 R$: http://www.roblox.com/Substantial-Donation-item?id=278159971 😁
1,000 R$: http://www.roblox.com/Life-Friend-Donation-item?id=278161034 😂
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