# What is the syntax to import conditional operators from ufl package?

**URL:** <https://fenicsproject.discourse.group/t/what-is-the-syntax-to-import-conditional-operators-from-ufl-package/5833>\
**Category:** Uncategorized\
**Created:** [May 19, 2021, 4:19pm UTC](https://fenicsproject.discourse.group/t/what-is-the-syntax-to-import-conditional-operators-from-ufl-package/5833 "2021-05-19T16:19:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [May 19, 2021, 4:47pm UTC](https://fenicsproject.discourse.group/t/what-is-the-syntax-to-import-conditional-operators-from-ufl-package/5833/2 "2021-05-19T16:47:02Z")

</div>

Use a `ufl.conditional`, see: [How to implement function with condition? - #3 by dokken](https://fenicsproject.discourse.group/t/how-to-implement-function-with-condition/5817/3)

---

_[View the full topic](https://fenicsproject.discourse.group/t/what-is-the-syntax-to-import-conditional-operators-from-ufl-package/5833)._
