Camera panning

After tutorial i made camera paning looks like this:

How can i clamp its movment in world. So i cant pan to infinity?

Yes that works but bool goes to true and you are disabled from moving.
Is there a way to make like someking of wall ?

There’s a resource called Blocking Volume that is basically an invisible wall you place on the level. But if you still want to solve it using the blueprint, you could set the bool to false when the branch outputs false.

sorry i dont get it. Input to branch is cameras location bigger than set variable.

so what i need is when i get to max or min variable you cant pan but you can pan back. So its like a frame where you can only pan.