IIF(expression, TrueValue, FalseValue)
e.DataRow("应收") = e.DataRow("消费金额") * (1 - iif(e.DataRow.IsNull("折扣"),[折扣],0))
试试看