Thread: Slash commands
View Single Post
04-03-09, 02:58 PM   #9
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
Originally Posted by p3lim View Post
Not sure if you saw or not, it checks the default table, matches it with my savedvariable.
using 'if(v == nil) then' wouldnt result in anything, because nothing in the default table is nil.

again:
Code:
for k, v in next, defaults do
      if(type(pMinimapDB[k]) == 'nil') then
            ...
I knew there was I reason I didn't notice that one at first glance :P.
I meant
Code:
pMinimapDB[k] == nil
but anyway theres really no point discussing this I was just being pedantic (which I seem to be doing a lot recently :P).
  Reply With Quote