I see, thank you.
It's easy enough if my table contains only single frames - I can make sure they exist by using a _G lookup by name.
What if I'm also trying to refer frames that are table values of those frames, though?
Let's say I have something like this:
Code:
for _, bu in pairs({BonusFrame.RandomBGButton, BonusFrame.Arena1Button, BonusFrame.Arena2Button}) do
bu.SelectedTexture:SetDrawLayer("BACKGROUND")
bu.SelectedTexture:SetTexture(r, g, b, .2)
bu.SelectedTexture:SetAllPoints()
end
What would be the correct syntax to ensure that both BonusFrame and its child members actually exist and that my code is executed?