Can we check whether a environment variable is exist or not?

Hi ,For example, I have this code on queryclose event:

If session.getenvironmentstring(“StationeryMail”) = 1 Then

do thing,

end if

if environment variable “StationeryMail” exist, but it is not equal “1”, then it is OK, but it is not working if this variable is not exist. I got error “type mismath”.

Do we have some code like: isavilable(“StationeryMail”)?

Thanks a lot for any help,

Subject: Can we check whether a environment variable is exist or not?

GetenvironmentSTRING returns a STRING and you are comparing to an integer

if session.get…(“…”) = “1” then

Subject: RE: Can we check whether a environment variable is exist or not?

Thanks a lot, Yazdi,Yes, you are right,my mistake.it works now.