NullIf
The NullIf function returns Null if the first argument is equal to the second. Otherwise, it returns the first argument.
To return the value of the first argument that is not null, see Coalesce.
Syntax
Function arguments
Notes
value1andvalue2accept any data type.- NullIf returns an error if
value1andvalue2are not the same data type.
Examples
Tests 0 and 1 are equal. Since they are not, returns 0.
Tests 0 and 0 are equal. Since they are, returns Null.
Tests whether "Sigma" and "sigma" are equal. Since they are not, returns "Sigma".
Tests whether "3.1416" and the result of Text(3.1416) are equal. Since they are, returns Null.

