Just as in the WHILE statement, if any expression in the condition evaluates to NULL, then the condition cannot be true, unless you are explicitly testing for NULL using the IS NULL operator. The following rules summarize NULL values in conditions:
If an expression in the condition has an UNKNOWN value from an uninitialized SPL variable, the statement terminates and raises an exception.
IF Statement List: (1) |--+-BEGIN--| Statement Block |-------END-+---------------------| | (2) | +-| Subset of SPL Statements |---------+ | (3) | '-| Subset of SQL Statements |-------;-'