Hey there guys... I would like to know how to get info using a sub pro and then pass it to the function to work on it using conditional statment and then display the result... thanks in advance appspl take a look at this script i dont understand how to make it work.. I want to get the age from the user and if it is 30 then with print or put a msgbox saying "congrats"... <html><head><script type="text/vbscript">public sub ageinfo()dim ageage=inputbox("Please enter your age")end subfunction agegreet()i=ageif i=30 thendocument.write("Congrats")end ifend function</script></head><body><script type="text/vbscript">call ageinfo()call agegreet()</script></body></html>