ASP常用函数:IIF()


用法: IIF(条件表达式,为真时返回值,为假时返回值)

<%
Function IIf(bExp1, sVal1, sVal2)
If (bExp1) Then
IIf = sVal1
Else
IIf = sVal2
End If
End Function
%>


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3