How Can I Get This C++ LightSwitch Function To Work?

Thank you for the help! I changed


PointLight->bVisible = true;

to


PointLight->bAddedToSceneVisible = true;

and fixed the typo and it worked like a charm. Not sure how I missed that typo, though. I appreciate your help and insight with my code issues!