PDA

View Full Version : If and function?


GreenBill
01-23-2010, 06:37 PM
Is there anyway to have an if and function or something similar?

What I'm trying to do is have the if function only show positive if textbox1=42 and textbox2=97. Is there any simple way to do this?

GreenBill
01-24-2010, 12:24 AM
I figured it out, for those who are curious the way to do it is
if(condition1 && condition2)
{
function
}Or in my example's case

if(form1.textbox1.value=="42" && form1.textbox2.value=="97")
{
form1.textbox3.value=("103")}