寂静城看不到地下城:ASP里 if a1=a2 and b1=b2 then...为什么and前后不是“与”的关系?是什么问题?
来源:百度文库 编辑:杭州交通信息网 时间:2024/05/09 10:19:37
这是我的一段代码,为什么“aucgsa4=gasa4”和“aucgasb4=gsb4 ”有一个成立时,score4就等于2了???
<%
if aucgsa4=gasa4 AND aucgasb4=gsb4 then
score4=2
elseif aucgsa4-aucgsb4=gsa4-gsb4 then
score4=1
elseif (aucgsa4-aucgsb4)*(gsa4-gsb4)>0 then
score4=0
else
score4=-2
end if
%>
<%
if aucgsa4=gasa4 AND aucgasb4=gsb4 then
score4=2
elseif aucgsa4-aucgsb4=gsa4-gsb4 then
score4=1
elseif (aucgsa4-aucgsb4)*(gsa4-gsb4)>0 then
score4=0
else
score4=-2
end if
%>
字符串要用引号括住。否则会看成是变量。
变量的值默认为0,所以0=0 and 0=0是真。
if "aucgsa4"="gasa4" AND "aucgasb4"="gsb4" then
这样写:
if (a1=a2) and (b1=b2) then
ASP里 if a1=a2 and b1=b2 then...为什么and前后不是“与”的关系?是什么问题?
excle写if语句可以吗? =if(and(a1>b1,a1>c1,a1>d1),0,if(and(a1<b1,a1<c1,a1<d1),0)) 在e1单元格里写的
驾驶执照 A1 A2 B1 B2 的区别
设x不等于y,且两个数列x,a1,a2,y和x,b1,b2,b3,y都成等差数列,则a2-a1:b2-b1=?
已知a1,a2,b1,b2均为正数,且a1≥a2,a1≤b1,a1a2≤b1b2,则a1+a2与b1+b2的大小关系是
已知点P〔a1,b1]和点Q[a2,b2],若有a1=a2 ,b1+b2=0,那么点P与点Q关于什么轴对称?为什么?
求证 a1^2/b1+a2^2/b2+……an^2/bn>=(a1+a2+a3+……an)^2/(b1+b2+b3+……bn)
=IF(A1="","",VLOOKUP(A1,SHEET1!$A$1:$E$10,COLUMN(B1),FALSE) 这个什么意思
已知实数x,a1.a2,y成等差数列,x,b1,b2,y成等比数列,则(a1+a2)^2/(b1*b2)的取值范围
在EXCEL中能不能实现B1=A1+B1