Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-13-10, 06:35 PM   #1
Chibi
A Cyclonian
 
Chibi's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2005
Posts: 43
Use table index as value?

If you have a table you're iterating through, is it possible to return the key as a literal value? example, if you have a table that looks like {1="a", 2="b", 3="c"} can you run through the table to see if a variable == "b" and then have it return 2?
__________________
Perhaps...
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Use table index as value?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off