Get camera zoom distance

Now i have a question, how can i make a script that reads the players camera zoom distance, and if its a specific number that my own line of code gets executed?

This post has a good answer: