Hi,
It is not possible to change the predefined structure of BAL rules.
We cannot change the meaning the rules so when a part of it doesn't match, we would consider another parts. There are constructions like
any of the following conditions is true
that supports "or", yet this only applies to the boolean expression in "if", not to the pattern described in the "definitions".
If you need to do something when objects from the working memory are matched, and do the same thing if they are not matched, yet another condition applies, you will have to write two rules, one with bindings:
definitions
set cart to a shopping cart;
then ...
and another one
if there is no shopping cart and ...
then ...
You may find some documentation on how to write this second rule at https://www.ibm.com/docs/en/odm/9.0.0?topic=conditions-that-test-existence
I hope this helps
------------------------------
Jean Louis Ardoint
------------------------------