View Single Post
12/18/23, 07:07 PM   #8
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,999
Originally Posted by sinnereso View Post
will "#MyAddon.killFilterList" work in the for .. do statement for length of list or number of entries? I've never seen this example before.
Depends on if your table #MyAddon.killFilterList uses a non-gap index key (1, 2, 3, 4, 5, ...) or not.
# means "count of" and only works (afaik) with non-gap index tables, same as "for key, value in ipairs(tableName) do " would iterate.

If your key is a string like a characteror accountName, it will not work.
You will have to read above then where the guys explainend you alreay how to iterate that -> "in pairs" (not in ipairs)
  Reply With Quote