# Is it possible to use or logic in workflow conditions?

**URL:** <https://community.dynatrace.com/t/is-it-possible-to-use-or-logic-in-workflow-conditions/41487>\
**Category:** Automations\
**Tags:** typescript, automationengine, workflows, automation\
**Created:** [September 1, 2023, 7:52pm UTC](https://community.dynatrace.com/t/is-it-possible-to-use-or-logic-in-workflow-conditions/41487 "2023-09-01T19:52:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jack\_Stuart](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jack_stuart/32/34583_2.png) [@Jack\_Stuart](https://community.dynatrace.com/u/Jack_Stuart)\
**Post date:** [September 1, 2023, 7:52pm UTC](https://community.dynatrace.com/t/is-it-possible-to-use-or-logic-in-workflow-conditions/41487/1 "2023-09-01T19:52:00Z")

</div>

Hi is it possible to use OR logic in an expression condition for workflow tasks?

I’ve tried the following:

{{ event().get(‘propA’, ‘false’) == ‘true’ || event().get(‘propB’, ‘false’) == ‘true’ }}

I also tried to default to property b if property a didn’t exist but that didn’t work either

{{ event().get(‘propA’, event().get(‘propB’)) == ‘true’ }}

Thanks in advance

Jack

---

_[View the full topic](https://community.dynatrace.com/t/is-it-possible-to-use-or-logic-in-workflow-conditions/41487)._
