Firebird DocsetFirebird Database DocsFirebird Null Guide → NULL in if statements
Firebird home Firebird home Prev: NULL handling in UDFsHome: Firebird DocsetUp: Firebird Null GuideNext: Testing if something is NULL

NULL in if statements

If the test expression of an if statement resolves to NULL, the then clause is skipped and the else clause (if present) executed. But beware! The expression may behave like false in this case, but it doesn't have the value false. It's still NULL, and weird things may happen if you forget that. The following examples explore some of the fiendish workings of NULL in if statements:

Prev: NULL handling in UDFsHome: Firebird DocsetUp: Firebird Null GuideNext: Testing if something is NULL
Firebird DocsetFirebird Database DocsFirebird Null Guide → NULL in if statements