Hi,
I'm sure I've posted this here before, but I don't think I got an answer and the keyword search is playing up so if it's already been answered sorry. I need to check to see if a variable exists before I use it (to avoid errors) is there anyway I can do this? I've tried:
and...well that's about all I can think of. Any help would be very much appreciated.
TIA,
Iain X-)
I'm sure I've posted this here before, but I don't think I got an answer and the keyword search is playing up so if it's already been answered sorry. I need to check to see if a variable exists before I use it (to avoid errors) is there anyway I can do this? I've tried:
Code:
if(typeof(variable) == 'undefined')
and...well that's about all I can think of. Any help would be very much appreciated.
TIA,
Iain X-)