How to access level blueprint variable in cpp

I have a bool say :
bool toggle which i created in level blueprint.
Now i need to check that value in cpp code and perform an action if true.

Hello!

Whatever you do, do not do inside the level blueprint since Level Blueprint are unaccessable from different classes…
Use Gamestate or GameInstance to store your variables which should be read from different classes.

Some Links:

Gameplay Framework Quick Reference | Unreal Engine Documentation

Configuring new project. UE4 main classes explanation. | Shooter Tutorial