How to lock a rotation

Hi guys want to create a rotating camera for my character and i do this

It work good but i want to lock the spring arm rotation to 40 degree, what is the way to do this ? I’ve tryed many times with the branch node but i not find a good way, thanks !

Ok it work