View Single Post
03-23-24, 09:53 AM   #3
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,892
Code:
watchedFactionID = watchedFactionID == nil and inInstance and hasDungeonTabard and tabardID
That resoves to a boolean
Code:
if watchedFactionID == nil and inInstance == AnythingButNilOrFalse and hasDungeonTabard == AnythingButNilOrFalse and tabardID == AnythingButNilOrFalse then
   watchedFactionID = true
else
   watchedFactionID = false
end
which means watchedFactionID won't be nil for the others because it will always be true or false (boolean).


Maybe:
Code:
watchedFactionID = (watchedFactionID == nil and inInstance and hasDungeonTabard) and tabardID or nil
Code:
if watchedFactionID = (watchedFactionID == nil and inInstance == AnythingButNilOrFalse and hasDungeonTabard == AnythingButNilOrFalse) then 
    watchedFactionID = tabardID
else
    watchedFactionID = nil
end
(Define your truth) and (then make an assigment if true) or (other assigment [defaults to false if no "or" and truth is not met])
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 03-23-24 at 12:30 PM.
  Reply With Quote