if-not and when-not support

Added support and tests for `if-not` and `when-not`.