Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-25-10, 05:43 PM   #1
Sythalin
Curse staff
 
Sythalin's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 680
Need some logic help

I thought I asked this once before, but my forum search/history turns up nothing.

lua Code:
  1. function CNames:ADDON_LOADED(event)
  2. ...
  3.     CNames_Options.enemy = CNames_Options.enemy or true
  4.     CNames_Options.friend = CNames_Options.friend or true
  5. ...
  6. end

When the addon loads up, .enemy and .friend are always true, even if the saved variable exists and is false. Where is my flaw in logic here?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Need some logic help


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