How do I make the program check if a value exists?

How do I make the program check if a value exists?
What's that supposed to mean?
I think the only options are

1. Use your eyeballs
2. Compile the code and see if it complains about the value never having been declared or something like that
Topic archived. No new replies allowed.