# Some code help - Complex Boolean Logic

**URL:** <https://forum.bome.com/t/some-code-help-complex-boolean-logic/1840>\
**Category:** Bome Products\
**Created:** [November 24, 2020, 1:50am UTC](https://forum.bome.com/t/some-code-help-complex-boolean-logic/1840 "2020-11-24T01:50:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![WeirdBome](https://forum.bome.com/user_avatar/forum.bome.com/weirdbome/32/748_2.png) [@WeirdBome](https://forum.bome.com/u/WeirdBome)\
**Post date:** [November 24, 2020, 9:36am UTC](https://forum.bome.com/t/some-code-help-complex-boolean-logic/1840/2 "2020-11-24T09:36:40Z")

</div>

Hi, look at this thread/answer:

> [@AND, OR, and ELSE in Rules](https://forum.bome.com/t/set-a-value-range/1632/3):
>
> Hi, you cannot currently concatenate boolean logic. There is no OR, AND, or ELSE. However, see below for some examples. I’ve put the actual complex operator logic in comments. // If pp==1 AND qq==3 then rr=4 else rr=5 rr=5 If pp!=1 then skip next 2 rules If qq!=3 then skip next rule rr=4 //end // If pp==1 OR qq==3 then rr=4 else rr=5 rr=5 If pp==1 then skip next rule If qq!=3 then skip next rule rr=4 //end // if pp==1 AND qq==3 AND rr==4 then ss=5 else ss=6 ss=6 If pp!=1 then skip next 2 ru…

There are two or three typos, but still shows great examples how to use conditions with ‘skip rules’ option.

---

_[View the full topic](https://forum.bome.com/t/some-code-help-complex-boolean-logic/1840)._
