Evaluating boolean values in PL/SQL
Say I have a boolean variable foo
.
At the moment I use IF foo = FALSE THEN ...
to compare it it, but it seems so cum开发者_StackOverflow社区bersome. There has to be a better way!
An alternative would be to rename the variable to not_foo
but that doesn't really make it any simpler.
Is there a way to test like IF !foo THEN ...
?
I think you can use the
IF NOT foo THEN...
Statement. Check out this link for more information
精彩评论