如果/然后/其他需要帮助 - 可能有更多条件吗? [英] If / Then / Else Help Needed - More then one condition possible?
问题描述
我想写一个if / then语句,并尝试使用它:
var MyVarMailto;
if(Request.Form(" LoanRequest") ;)==低于$ 250,000){
if(Request.Form(" Organization")==" 1"){
MyVarMailto =" ; em **** @ address.com" ;;
}
}
else if(Request.Form(" LoanRequest")) ==超过$ 250,000){
if(Request.Form(" Organization")==" 1"){
MyVarMailto =&em; em ****@address.com" ;;
}
}
else {
MyVarMailto =" em****@address.com" ;;
}
基本上我有一个表格可以填写并提交
将值传递给此页面。我想检查你可能在上面找出的
条件的值,然后设置
变量与这些值一致。我尝试在第一个
条件之后使用AND,但这并没有做任何事情。请帮忙。非常感谢。
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 = "em****@address.com";
}
}
else if (Request.Form("LoanRequest") == "Over $250,000") {
if (Request.Form("Organization") == "1") {
MyVarMailto = "em****@address.com";
}
}
else {
MyVarMailto = "em****@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.
推荐答案
250,000"){
if(Request.Form(")组织")==" 1"){
MyVarMailto =" em **** @ address.com" ;;
}
}
else if(Request.Form(" LoanRequest")==" Over
250,000") {
if (Request.Form("Organization") == "1") {
MyVarMailto = "em****@address.com";
}
}
else if (Request.Form("LoanRequest") == "Over
250,000"){
if(Request.Form(" Organization")==" 1"){
MyVarMailto =" em **** @ address.com";
}
}
else {
MyVarMailto =" em **** @ address.com";
}
所以基本上我有一个表格可以填写并提交
将值传递给此页面。我想检查你可能在上面找出的
条件的值,然后设置
变量与这些值一致。我尝试在第一个
条件之后使用AND,但这并没有做任何事情。请帮忙。非常感谢。
250,000") {
if (Request.Form("Organization") == "1") {
MyVarMailto = "em****@address.com";
}
}
else {
MyVarMailto = "em****@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.
tb * ******@gmail.com 写道:
var MyVarMailto;
if(Request.Form(") ; LoanRequest")==" Under
var MyVarMailto;
if (Request.Form("LoanRequest") == "Under
这篇关于如果/然后/其他需要帮助 - 可能有更多条件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!