用法:IIF(條件表達式,為真時返回值,為假時返回值) <% FunctionIIf(bExp1,sVal1,sVal2) If(bExp1)Then IIf=sVal1 Else IIf=sVal2 EndIf EndFunction %>