Subj : help: validate javascript To : netscape.public.mozilla.jseng From : "john" Date : Tue Mar 18 2003 05:54 pm var time=1; var distance=2 var cal = true; if(cal){ speed = distance/time; }else{ speed2222; } using evaluateString or compileReader it will not give error message "speed2222 is not defined ", unless cal is false. But if i change speed222 to speed 222 and cal=true, it will give error message" missing ; before statement", which is correct. Is this a bug or not? If not, how do i need validate this script. Thanks, john .