用导航打开主题
Defines a conditional expression and the expressions to run depending on the outcome of the conditional expression.
IIF(ConditionalExpr, ExprIfTrue, ExprIfFalse)
位置 :
ConditionalExpr is an expression that evaluates to True or False.
ExprIfTrue is an expression that is to be run if CondiionalExpr evaluates to True.
ExprIfFalse is an expression that is to be run if CondiionalExpr evaluates to False.
Only one of the two expressions (ExprIfTrue or ExprIfFalse) are run each time the IIF function runs.其中的每个表达式都可以是任何有效的单行表达式,包括其他(“嵌套的”)IIF 函数。
For more information about the IIF function, refer to Using the In-line If (IIF) Function.
相关主题