Logical Functions in Expressions
Logical functions perform an operation or comparison on objects and expressions.
Logical
The following information describes the functions available for building expressions.
Function | Syntax | Description | Example |
---|---|---|---|
If | IF(boolean_condition, expression1, expression2) | If the condition evaluates to True, expression1 is returned. If the condition evaluates to False, expression2 is returned. Note: This function accepts any type for its second and third parameters, as long as they are both of the same type. | IF (5>4, 1, 0) = 1 |
IsNull | IsNull(object) | Determines whether or not a given expression is type DBNull. | IsNull(myLocalVariable) |