Originally Posted by SDPhantom
Lua Code:
MainFrame:SetShown(itemid and true or false);-- Typecast to boolean
|
Not specifically related to anything, but another, less verbose way to do that would be:
Lua Code:
MainFrame:SetShown(not not itemid); -- Typecast to boolean