I want to write an if / then statement and have tried using this:
var MyVarMailto;
if (Request.Form(" LoanRequest") == "Under $250,000") {
if (Request.Form(" Organization") == "1") {
MyVarMailto = "emailA@address .com";
}
}
else if (Request.Form(" LoanRequest") == "Over $250,000") {
if (Request.Form(" Organization") == "1") {
MyVarMailto = "emailB@address .com";
}
}
else {
MyVarMailto = "emailC@address .com";
}
So basically I have a form that gets filled out and submitted which
passes the values to this page. I want to check the values against
conditions that you can probably figure out above and then set the
variable contigent to those values. I tried using AND after the first
condition but that doesn't do anything. Please help. Thanks so much.
var MyVarMailto;
if (Request.Form(" LoanRequest") == "Under $250,000") {
if (Request.Form(" Organization") == "1") {
MyVarMailto = "emailA@address .com";
}
}
else if (Request.Form(" LoanRequest") == "Over $250,000") {
if (Request.Form(" Organization") == "1") {
MyVarMailto = "emailB@address .com";
}
}
else {
MyVarMailto = "emailC@address .com";
}
So basically I have a form that gets filled out and submitted which
passes the values to this page. I want to check the values against
conditions that you can probably figure out above and then set the
variable contigent to those values. I tried using AND after the first
condition but that doesn't do anything. Please help. Thanks so much.
Comment