用法:IIF(条件表达式,为真时返回值,为假时返回值) <% FunctionIIf(bExp1,sVal1,sVal2) If(bExp1)Then IIf=sVal1 Else IIf=sVal2 EndIf EndFunction %>