test if a variable is not set

hi

i am getting a error message that a certain variable is not set beforehand: “access none trying to read…”
i want to place a debug break point when it is attempting to read the variable when it is not properly set and it is going to result in the error message
how can you test if a variable is set or equal to none

thanks

You can use either of these options: