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
 

Re: What does # do with tables

Previous Thread :: Next Thread 
QuantumNexsus is not online. QuantumNexsus
Joined: 09 Nov 2014
Total Posts: 2451
10 Feb 2017 05:39 PM
Just curious.


Report Abuse
ExpensiveGaming is not online. ExpensiveGaming
Joined: 01 Apr 2013
Total Posts: 783
10 Feb 2017 05:40 PM
the title got hashtagged


Report Abuse
DeepBlueNoSpace is online. DeepBlueNoSpace
Joined: 24 Oct 2013
Total Posts: 6279
10 Feb 2017 05:40 PM
Returns the number of keys the table holds

local foo = {10, 10, 10, 10, 10}

print(#foo)

--> 5

local bar = {23, 323213,21321,312321}

print(#bar)

--> 4


AutoCarrot// Private Drive - Residents Only
Report Abuse
QuantumNexsus is not online. QuantumNexsus
Joined: 09 Nov 2014
Total Posts: 2451
10 Feb 2017 05:41 PM
Im talking about the actual # in tables


Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
10 Feb 2017 05:41 PM
It returns the array length.
Report Abuse
TehIcyStar is not online. TehIcyStar
Joined: 07 Mar 2010
Total Posts: 1649
10 Feb 2017 05:41 PM
If you're talking about this:

print(#MyTable)

>3

it's the count of the things in the table
Report Abuse
QuantumNexsus is not online. QuantumNexsus
Joined: 09 Nov 2014
Total Posts: 2451
10 Feb 2017 05:42 PM
Ye i was talking about that.


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